2015-01-14 07:06:27 +08:00
|
|
|
// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -gline-tables-only -fblocks -emit-llvm %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
void fn();
|
|
|
|
|
|
|
|
struct foo {
|
|
|
|
~foo();
|
|
|
|
};
|
|
|
|
|
2015-01-14 15:10:46 +08:00
|
|
|
void f1() {
|
2015-01-14 07:06:27 +08:00
|
|
|
^{
|
|
|
|
foo f;
|
|
|
|
fn();
|
2015-01-14 15:10:46 +08:00
|
|
|
// CHECK: cleanup, !dbg [[DBG_F1:![0-9]*]]
|
|
|
|
#line 100
|
2015-01-14 07:06:27 +08:00
|
|
|
}();
|
|
|
|
}
|
2015-01-14 15:10:46 +08:00
|
|
|
|
|
|
|
// CHECK-LABEL: define internal i8* @"\01-[TNSObject init]"
|
|
|
|
@implementation TNSObject
|
|
|
|
- (id)init
|
|
|
|
{
|
|
|
|
foo f;
|
|
|
|
fn();
|
|
|
|
// CHECK: cleanup, !dbg [[DBG_TNSO:![0-9]*]]
|
|
|
|
#line 200
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2015-01-15 06:28:03 +08:00
|
|
|
// CHECK: [[DBG_F1]] = !MDLocation(line: 100,
|
|
|
|
// CHECK: [[DBG_TNSO]] = !MDLocation(line: 200,
|