Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -S %s -o %t-64.s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -triple i386-apple-darwin -S %s -o %t-32.s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 4 | // RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s |
Fariborz Jahanian | 339798e | 2009-10-05 20:41:32 +0000 | [diff] [blame] | 5 | |
| 6 | @protocol MyProtocol |
| 7 | @end |
| 8 | |
| 9 | @protocol ExtendedProtocol |
| 10 | @end |
| 11 | |
| 12 | @interface ItDoesntWork<MyProtocol> { |
| 13 | } |
| 14 | -(void) Meth; |
| 15 | @end |
| 16 | |
| 17 | @interface ItDoesntWork() <MyProtocol, ExtendedProtocol> |
| 18 | @end |
| 19 | |
| 20 | @implementation ItDoesntWork |
| 21 | -(void) Meth { |
| 22 | ItDoesntWork <MyProtocol, ExtendedProtocol> *p = 0; |
| 23 | } |
| 24 | @end |
| 25 | |
| 26 | // CHECK-LP64: l_OBJC_PROTOCOL_$_ExtendedProtocol: |
| 27 | |
| 28 | // CHECK-LP32: L_OBJC_PROTOCOL_ExtendedProtocol: |