aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test/in/AddSubScope/SimpleShadowing.c
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-10 22:11:04 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-10 22:11:04 +0000
commit27134d31ce42631fca12295f4064d55de8dfdee8 (patch)
tree1610ad24f7f83e85b4349f214b1d754aa1b93ab6 /c_compiler/test/in/AddSubScope/SimpleShadowing.c
parenta6addb3eb3b5378dc17d9ea7bf066962517fbfbe (diff)
downloadCompiler-27134d31ce42631fca12295f4064d55de8dfdee8.tar.gz
Compiler-27134d31ce42631fca12295f4064d55de8dfdee8.zip
moved test cases
Diffstat (limited to 'c_compiler/test/in/AddSubScope/SimpleShadowing.c')
-rw-r--r--c_compiler/test/in/AddSubScope/SimpleShadowing.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/c_compiler/test/in/AddSubScope/SimpleShadowing.c b/c_compiler/test/in/AddSubScope/SimpleShadowing.c
new file mode 100644
index 0000000..927afce
--- /dev/null
+++ b/c_compiler/test/in/AddSubScope/SimpleShadowing.c
@@ -0,0 +1,8 @@
+int main() {
+ int x = 12;
+ {
+ int x = 39;
+ }
+
+ return x;
+}