ref: 99f65931e88b3a22b2bd5e9e88bf6798c529023c
parent: 15a08e3fab9ec6ed44b7be3195947399219d7a39
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Oct 6 11:27:37 EDT 2015
Add basic test for tentative definitions
--- /dev/null
+++ b/cc1/tests/test038.c
@@ -1,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;
+}