Galina Kistanova | 0ccb31c | 2011-06-03 22:24:54 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-registered-target,x86-64-registered-target |
John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S %s -o %t-64.s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 3 | // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s |
John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 4 | // RUN: %clang_cc1 -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-32.s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s |
Fariborz Jahanian | 339798e | 2009-10-05 20:41:32 +0000 | [diff] [blame] | 6 | |
| 7 | @protocol MyProtocol |
| 8 | @end |
| 9 | |
| 10 | @protocol ExtendedProtocol |
| 11 | @end |
| 12 | |
| 13 | @interface ItDoesntWork<MyProtocol> { |
| 14 | } |
| 15 | -(void) Meth; |
| 16 | @end |
| 17 | |
| 18 | @interface ItDoesntWork() <MyProtocol, ExtendedProtocol> |
| 19 | @end |
| 20 | |
| 21 | @implementation ItDoesntWork |
| 22 | -(void) Meth { |
| 23 | ItDoesntWork <MyProtocol, ExtendedProtocol> *p = 0; |
| 24 | } |
| 25 | @end |
| 26 | |
| 27 | // CHECK-LP64: l_OBJC_PROTOCOL_$_ExtendedProtocol: |
| 28 | |
| 29 | // CHECK-LP32: L_OBJC_PROTOCOL_ExtendedProtocol: |