aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/volatile1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/regression/volatile1.c')
-rw-r--r--test/regression/volatile1.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/regression/volatile1.c b/test/regression/volatile1.c
new file mode 100644
index 00000000..3818c238
--- /dev/null
+++ b/test/regression/volatile1.c
@@ -0,0 +1,9 @@
+volatile int v;
+
+int f1(void) { return v; }
+
+int f2(void) { return v++; }
+
+int f3(void) {return v / v + 1 + v; }
+
+void f4(void) { v; }