From b0e59dda1808d178e8c96da6fa897e6989c76877 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 5 Mar 2010 23:35:04 +0000 Subject: [PATCH] Test case for r97851. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97852 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC/2010-03-5-LexicalScope.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/FrontendC/2010-03-5-LexicalScope.c diff --git a/test/FrontendC/2010-03-5-LexicalScope.c b/test/FrontendC/2010-03-5-LexicalScope.c new file mode 100644 index 00000000000..93a841a8f29 --- /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; +} -- 2.34.1