llvm-project/llvm/test/FrontendC/2010-03-5-LexicalScope.c

11 lines
153 B
C
Raw Normal View History

// RUN: %llvmgcc -S -O0 -g %s -o - | grep DW_TAG_lexical_block | count 3
2010-03-06 07:35:04 +08:00
int foo(int i) {
if (i) {
int j = 2;
}
else {
int j = 3;
}
return i;
}