summaryrefslogtreecommitdiff
path: root/cil/test/small1/init1.c
diff options
context:
space:
mode:
Diffstat (limited to 'cil/test/small1/init1.c')
-rw-r--r--cil/test/small1/init1.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/cil/test/small1/init1.c b/cil/test/small1/init1.c
new file mode 100644
index 0000000..e6334df
--- /dev/null
+++ b/cil/test/small1/init1.c
@@ -0,0 +1,17 @@
+extern void exit(int);
+
+struct {
+ struct {
+ int *f1;
+ int *f2;
+ } s1;
+ struct {
+ int *f3;
+ } s2;
+} memory[10] = { 1 };
+
+int main() {
+ if(memory[0].s1.f1 != (int*)1)
+ exit(1);
+ exit(0);
+}