commit | 1326ec81fc277c03ac78f08eb0b7117c87add83f | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Fri Mar 05 23:35:04 2010 +0000 |
committer | Devang Patel <dpatel@apple.com> | Fri Mar 05 23:35:04 2010 +0000 |
tree | 0d7e31ce638503d5e463364fa7c97deec931e2df | |
parent | 33243aafe37d923e1470b20768fe73b19b4527a2 [diff] [blame] |
Test case for r97851. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97852 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/FrontendC/2010-03-5-LexicalScope.c b/test/FrontendC/2010-03-5-LexicalScope.c new file mode 100644 index 0000000..93a841a --- /dev/null +++ b/test/FrontendC/2010-03-5-LexicalScope.c
@@ -0,0 +1,10 @@ +// RUN: %llvmgcc -S -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; +}