llvm-project/clang/test/CodeGen/2010-03-5-LexicalScope.c

13 lines
198 B
C
Raw Normal View History

// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s
// CHECK: DW_TAG_lexical_block
// CHECK: DW_TAG_lexical_block
int foo(int i) {
if (i) {
int j = 2;
}
else {
int j = 3;
}
return i;
}