[hackers] [scc] Add basic test for tentative definitions || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 7 Oct 2015 17:44:48 +0200 (CEST)

commit 99f65931e88b3a22b2bd5e9e88bf6798c529023c
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Oct 6 15:27:37 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Oct 7 17:23:30 2015 +0200

    Add basic test for tentative definitions

diff --git a/cc1/tests/test038.c b/cc1/tests/test038.c
new file mode 100644
index 0000000..b2b12d8
--- /dev/null
+++ b/cc1/tests/test038.c
_AT_@ -0,0 +1,41 @@
+
+/*
+name: TEST038
+description: Basic test for tentative definitions
+output:
+G1 I x
+ G1 #I0 :I
+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;
+int x = 0;
+int x;
+
+int main();
+
+void *
+foo()
+{
+ return &main;
+}
+
+int
+main()
+{
+ x = 0;
+ return x;
+}
Received on Wed Oct 07 2015 - 17:44:48 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 07 2015 - 17:48:18 CEST