[hackers] [scc] Add solution for test of tentative declarations || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 9 Jan 2016 21:33:36 +0100 (CET)

commit 0e9ab695770b9c5501b56fb712527e1ed780950d
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Jan 9 21:26:10 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Jan 9 21:26:10 2016 +0100

    Add solution for test of tentative declarations

diff --git a/cc1/tests/test038.c b/cc1/tests/test038.c
index 4b9052b..4e1a221 100644
--- a/cc1/tests/test038.c
+++ b/cc1/tests/test038.c
_AT_@ -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;
_AT_@ -24,3 +42,4 @@ main()
         x = 0;
         return x;
 }
+int x = 1;
Received on Sat Jan 09 2016 - 21:33:36 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 09 2016 - 21:36:22 CET