Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o %t %s |
Fariborz Jahanian | fded62e | 2009-12-14 18:18:29 +0000 | [diff] [blame] | 2 | // RUN: grep -F 'l_OBJC_$_PROP_LIST_C2" = internal global %8 { i32 16, i32 3' %t |
Fariborz Jahanian | 191dcd7 | 2009-12-12 21:26:21 +0000 | [diff] [blame] | 3 | |
| 4 | @protocol P |
| 5 | @property int i; |
| 6 | @end |
| 7 | |
| 8 | @protocol P1 |
| 9 | @property int i1; |
| 10 | @end |
| 11 | |
| 12 | @protocol P2 < P1> |
| 13 | @property int i2; |
| 14 | @end |
| 15 | |
| 16 | @interface C1 { id isa; } @end |
| 17 | |
| 18 | @interface C2 : C1 <P, P2> { |
| 19 | int i; |
| 20 | } |
| 21 | @property int i2; |
| 22 | @end |
| 23 | |
| 24 | @implementation C1 |
| 25 | +(void)initialize { } |
| 26 | @end |
| 27 | |
| 28 | @implementation C2 |
| 29 | @synthesize i; |
| 30 | @synthesize i1; |
| 31 | @synthesize i2; |
| 32 | @end |