summaryrefslogtreecommitdiff
path: root/cil/doc/examples/ex12.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cil/doc/examples/ex12.txt')
-rw-r--r--cil/doc/examples/ex12.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/cil/doc/examples/ex12.txt b/cil/doc/examples/ex12.txt
new file mode 100644
index 0000000..d04d83d
--- /dev/null
+++ b/cil/doc/examples/ex12.txt
@@ -0,0 +1,32 @@
+/* Generated by CIL v. 1.3.5 */
+/* print_CIL_Input is true */
+
+#line 2 "cilcode.tmp/ex12.c"
+struct foo {
+ int f1 ;
+ int f2 ;
+};
+#line 1 "cilcode.tmp/ex12.c"
+int main(void)
+{ int x ;
+ struct foo a[3] ;
+
+ {
+#line 1
+ x = 5;
+#line 2
+ a[0].f1 = 1;
+#line 2
+ a[0].f2 = 2;
+#line 2
+ a[1].f1 = 3;
+#line 2
+ a[1].f2 = 4;
+#line 2
+ a[2].f1 = 5;
+#line 2
+ a[2].f2 = 0;
+#line 3
+ return (0);
+}
+}