diff options
Diffstat (limited to 'cil/test/small1/init1.c')
-rw-r--r-- | cil/test/small1/init1.c | 17 |
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 00000000..e6334df9 --- /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); +} |