aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test/in/AddSubScope/VariableAdd.c
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/test/in/AddSubScope/VariableAdd.c')
-rw-r--r--c_compiler/test/in/AddSubScope/VariableAdd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/c_compiler/test/in/AddSubScope/VariableAdd.c b/c_compiler/test/in/AddSubScope/VariableAdd.c
new file mode 100644
index 0000000..e16ed8b
--- /dev/null
+++ b/c_compiler/test/in/AddSubScope/VariableAdd.c
@@ -0,0 +1,11 @@
+int main() {
+ int x = 23;
+ int y = 52;
+
+ x = x + y;
+ x = x + x;
+ y = x - y;
+ x = x - y;
+
+ return x;
+}