2018-03-10 07:00:29 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-windows-gnu -fcxx-exceptions -fexceptions -debug-info-kind=line-tables-only -fblocks -emit-llvm %s -o - | FileCheck %s
|
2018-08-31 21:56:14 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-windows-gnu -fcxx-exceptions -fexceptions -debug-info-kind=line-directives-only -fblocks -emit-llvm %s -o - | FileCheck %s
|
2015-01-14 07:06:27 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
2015-06-30 01:29:50 +08:00
|
|
|
// CHECK-LABEL: define internal {{.*}}i8* @"\01-[TNSObject init]"
|
2015-01-14 15:10:46 +08:00
|
|
|
@implementation TNSObject
|
|
|
|
- (id)init
|
|
|
|
{
|
|
|
|
foo f;
|
|
|
|
fn();
|
|
|
|
// CHECK: cleanup, !dbg [[DBG_TNSO:![0-9]*]]
|
|
|
|
#line 200
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: [[DBG_F1]] = !DILocation(line: 100,
|
|
|
|
// CHECK: [[DBG_TNSO]] = !DILocation(line: 200,
|