aboutsummaryrefslogtreecommitdiffstats
path: root/test/cse2/globals.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/cse2/globals.c')
-rw-r--r--test/cse2/globals.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/cse2/globals.c b/test/cse2/globals.c
new file mode 100644
index 00000000..c6dd59cd
--- /dev/null
+++ b/test/cse2/globals.c
@@ -0,0 +1,8 @@
+int glob1, glob2;
+
+void toto() {
+ if (glob1 > 4) {
+ glob2 ++;
+ glob1 --;
+ }
+}