Fariborz Jahanian | 7e68ba5 | 2012-06-29 22:54:56 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o %t %s |
| 2 | // RUN: FileCheck < %t %s |
| 3 | // rdar://11777609 |
| 4 | |
| 5 | typedef struct {} Z; |
| 6 | |
| 7 | @interface A |
| 8 | -(void)bar:(Z)a; |
| 9 | -(void)foo:(Z)a : (char*)b : (Z)c : (double) d; |
| 10 | @end |
| 11 | |
| 12 | @implementation A |
| 13 | -(void)bar:(Z)a {} |
| 14 | -(void)foo:(Z)a: (char*)b : (Z)c : (double) d {} |
| 15 | @end |
| 16 | |
| 17 | // CHECK: internal global [14 x i8] c"v16@0:8{?=}16 |
| 18 | // CHECK: internal global [26 x i8] c"v32@0:8{?=}16*16{?=}24d24 |
| 19 | |
Fariborz Jahanian | 17c1a2e | 2013-02-15 21:14:50 +0000 | [diff] [blame^] | 20 | |
| 21 | // rdar://13190095 |
| 22 | @interface NSObject @end |
| 23 | |
| 24 | @class BABugExample; |
| 25 | typedef BABugExample BABugExampleRedefinition; |
| 26 | |
| 27 | @interface BABugExample : NSObject { |
| 28 | BABugExampleRedefinition *_property; // .asciz "^{BABugExample=^{BABugExample}}" |
| 29 | } |
| 30 | @property (copy) BABugExampleRedefinition *property; |
| 31 | @end |
| 32 | |
| 33 | @implementation BABugExample |
| 34 | @synthesize property = _property; |
| 35 | @end |
| 36 | |
| 37 | // CHECK: internal global [24 x i8] c"^{BABugExample=@}16 |