2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -w -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
|
2012-04-03 08:44:15 +08:00
|
|
|
# 1 "foo.m" 1
|
|
|
|
# 1 "foo.m" 2
|
|
|
|
# 1 "./foo.h" 1
|
|
|
|
@interface NSObject {
|
|
|
|
struct objc_object *isa;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
@class NSDictionary;
|
|
|
|
|
|
|
|
@interface Foo : NSObject {}
|
|
|
|
@property (strong, nonatomic) NSDictionary *dict;
|
|
|
|
@end
|
|
|
|
# 2 "foo.m" 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@implementation Foo
|
|
|
|
@synthesize dict = _dict;
|
|
|
|
|
|
|
|
- (void) bork {
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
@autoreleasepool {
|
|
|
|
Foo *f = [Foo new];
|
|
|
|
[f bork];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK: ![[FILE:.*]] = !DIFile(filename: "foo.m"
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DISubprogram(name: "-[Foo setDict:]"
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: file: ![[FILE]],
|
2019-11-05 06:28:14 +08:00
|
|
|
// CHECK-SAME: line: 7,
|
2018-11-29 05:18:07 +08:00
|
|
|
// CHECK-SAME: DISPFlagLocalToUnit | DISPFlagDefinition
|