aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test/in/SimpleScope.c
diff options
context:
space:
mode:
authorymherklotz <ymherklotz@gmail.com>2017-03-10 20:24:02 +0000
committerymherklotz <ymherklotz@gmail.com>2017-03-10 20:24:02 +0000
commit545ce63f17eed12c193690868ce6344e7a497c91 (patch)
treed325b9504aade9487c8d982a5e3600ac43b8be2c /c_compiler/test/in/SimpleScope.c
parenta6fa6da5de8252a205e000dd7acc2589735aa55c (diff)
downloadCompiler-545ce63f17eed12c193690868ce6344e7a497c91.tar.gz
Compiler-545ce63f17eed12c193690868ce6344e7a497c91.zip
Adding test cases
Diffstat (limited to 'c_compiler/test/in/SimpleScope.c')
-rw-r--r--c_compiler/test/in/SimpleScope.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/c_compiler/test/in/SimpleScope.c b/c_compiler/test/in/SimpleScope.c
new file mode 100644
index 0000000..85294a1
--- /dev/null
+++ b/c_compiler/test/in/SimpleScope.c
@@ -0,0 +1,7 @@
+int main() {
+ int x = 23;
+ {
+ x = 123;
+ }
+ return x;
+}