diff options
Diffstat (limited to 'clang/test/CodeGen/2010-03-5-LexicalScope.c')
-rw-r--r-- | clang/test/CodeGen/2010-03-5-LexicalScope.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2010-03-5-LexicalScope.c b/clang/test/CodeGen/2010-03-5-LexicalScope.c new file mode 100644 index 0000000..0f63ff6 --- /dev/null +++ b/clang/test/CodeGen/2010-03-5-LexicalScope.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -emit-llvm -O0 -g %s -o - | grep DW_TAG_lexical_block | count 3 +int foo(int i) { + if (i) { + int j = 2; + } + else { + int j = 3; + } + return i; +} |