Eric Christopher | ea32047 | 2012-04-03 00:44:15 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -g -w -triple x86_64-apple-darwin10 %s -o - | FileCheck %s |
2 | # 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 | |||||
26 | int main(int argc, char *argv[]) { | ||||
27 | @autoreleasepool { | ||||
28 | Foo *f = [Foo new]; | ||||
29 | [f bork]; | ||||
30 | } | ||||
31 | } | ||||
32 | |||||
Eric Christopher | be6c686 | 2012-04-11 05:56:05 +0000 | [diff] [blame] | 33 | // CHECK: !7 = metadata !{i32 {{.*}}, metadata !"./foo.h" |
Eric Christopher | 87380aa | 2012-04-23 19:00:24 +0000 | [diff] [blame] | 34 | // CHECK: !29 = metadata !{i32 {{.*}}, i32 0, metadata !7, metadata !"-[Foo dict]", metadata !"-[Foo dict]", metadata !"", metadata !7, i32 8, metadata !30, i1 true, i1 true, i32 0, i32 0, null, i32 320, i1 false, %1* (%0*, i8*)* @"\01-[Foo dict]", null, null, metadata !1, i32 8} ; [ DW_TAG_subprogram ] |