shithub: scc

Download patch

ref: 0e9ab695770b9c5501b56fb712527e1ed780950d
parent: 229b3952de509bb616c16159020fd22ae6d2fca3
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Jan 9 16:26:10 EST 2016

Add solution for test of tentative declarations

--- 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 @@
 	x = 0;
 	return x;
 }
+int x = 1;