almost complte code example
[cdsspec-compiler.git] / test.c
diff --git a/test.c b/test.c
index 417f795ccef101c0e1cf47e4bf56429a894ab27c..0333725e45bc790405032234454bc3311ef54a08 100644 (file)
--- a/test.c
+++ b/test.c
@@ -1,22 +1,32 @@
 #include <stdio.h>
 #include "test.h"
+#include "test.h"
 
-struct XX {
-       
+struct pair {
+       int x, y;
 };
 
+struct pair p[] = {{1,2}, {2,3}};
+
 enum E {
        a, b, c
 };
-
+const int inte = 3;
 void _foo(struct Test t) {
+       for (int i = 0; i < 10; i++) {
+               int j;
+       }
        printf("%d\n", t.x);
 }
 
 void foo(struct Test t) {
+       int num[] = {5, 3};
        _foo(t);
 }
 
+void func() {
+}
+
 int main() {
        printf("%d\n", b);
        return 0;