aboutsummaryrefslogtreecommitdiff
path: root/testbed/custom_subexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'testbed/custom_subexp.c')
-rw-r--r--testbed/custom_subexp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/testbed/custom_subexp.c b/testbed/custom_subexp.c
new file mode 100644
index 0000000..bce5bdb
--- /dev/null
+++ b/testbed/custom_subexp.c
@@ -0,0 +1,9 @@
+int N = 0;
+void f() { N = 2; }
+int main() {
+ int a, b;
+ a = N + 1;
+ f();
+ b = N + 1;
+ printf("%d\n", b);
+}