llvm-for-llvmta/tools/clang/test/CodeGen/2010-03-5-LexicalScope.c

13 lines
212 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
// CHECK: !DILexicalBlock(
// CHECK: !DILexicalBlock(
int foo(int i) {
if (i) {
int j = 2;
}
else {
int j = 3;
}
return i;
}