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

13 lines
190 B
C

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