ref: 88aee8a45958896c9982aae423221c2f06f1a3ef
parent: 2cd872bc09250e9ba2c7f5e2bae693b28f06b56c
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Feb 26 13:30:21 EST 2017
[tests] Add more tests
--- /dev/null
+++ b/tests/execute/0121-localinit.c
@@ -1,0 +1,5 @@
+main()
+{
+ int x[] = { 1, 0 };
+ return x[1];
+}
--- /dev/null
+++ b/tests/execute/0122-localinit.c
@@ -1,0 +1,6 @@
+int
+main()
+{
+ struct { int x; } s = { 0 };
+ return s.x;
+}
--- /dev/null
+++ b/tests/execute/0123-doubleconst.c
@@ -1,0 +1,7 @@
+double x = 100;
+
+int
+main()
+{
+ return x < 1;
+}
--- /dev/null
+++ b/tests/execute/0124-enumstruct.c
@@ -1,0 +1,10 @@
+struct {
+ enum { X } x;
+} s;
+
+
+int
+main()
+{
+ return X;
+}
--- a/tests/execute/scc-tests.lst
+++ b/tests/execute/scc-tests.lst
@@ -111,3 +111,7 @@
0118-voidmain.c TODO
0119-macrostr.c
0120-funpar.c
+0121-localinit.c TODO
+0122-localinit.c TODO
+0123-doubleconst.c TODO
+0124-enumstruct.c TODO