scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 0e9ab695770b9c5501b56fb712527e1ed780950d
parent 229b3952de509bb616c16159020fd22ae6d2fca3
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  9 Jan 2016 21:26:10 +0100

Add solution for test of tentative declarations

Diffstat:
cc1/tests/test038.c | 21++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/cc1/tests/test038.c b/cc1/tests/test038.c @@ -3,7 +3,25 @@ name: TEST038 description: Basic test for tentative definitions output: - +test038.c:45: error: redeclaration of 'x' +G1 I x +( + #I0 +) +F2 I E +X3 F2 main +F4 P E +G5 F4 foo +{ +\ + r X3 'P +} +G3 F2 main +{ +\ + G1 #I0 :I + r G1 +} */ int x; @@ -24,3 +42,4 @@ main() x = 0; return x; } +int x = 1;