blob: 8d2846e7312bc335d65c9ef441560aa202d22e3b [file] [log] [blame]
Douglas Katzman3459ce22015-10-08 04:24:12 +00001// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -w -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
Eric Christopherb7e821a2012-04-03 00:44:15 +00002# 1 "foo.m" 1
3# 1 "foo.m" 2
4# 1 "./foo.h" 1
5@interface NSObject {
6 struct objc_object *isa;
7}
8@end
9@class NSDictionary;
10
11@interface Foo : NSObject {}
12@property (strong, nonatomic) NSDictionary *dict;
13@end
14# 2 "foo.m" 2
15
16
17
18
19@implementation Foo
20@synthesize dict = _dict;
21
22- (void) bork {
23}
24@end
25
26int main(int argc, char *argv[]) {
27 @autoreleasepool {
28 Foo *f = [Foo new];
29 [f bork];
30 }
31}
32
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +000033// CHECK: ![[FILE:.*]] = !DIFile(filename: "{{[^"]+}}foo.h"
34// CHECK: !DISubprogram(name: "-[Foo setDict:]"
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +000035// CHECK-SAME: file: ![[FILE]],
36// CHECK-SAME: line: 8,
37// CHECK-SAME: isLocal: true, isDefinition: true