2013-09-04 12:12:25 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s
|
2013-01-25 06:47:48 +08:00
|
|
|
// CHECK: DW_TAG_lexical_block
|
|
|
|
// CHECK: DW_TAG_lexical_block
|
2011-07-27 06:17:02 +08:00
|
|
|
int foo(int i) {
|
|
|
|
if (i) {
|
|
|
|
int j = 2;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
int j = 3;
|
|
|
|
}
|
|
|
|
return i;
|
|
|
|
}
|