blob: d2955b1e3a1108bf697860a593ec9d9c475e8955 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -S %s -o %t-64.s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
Daniel Dunbara5728872009-12-15 20:14:24 +00003// RUN: %clang_cc1 -triple i386-apple-darwin -S %s -o %t-32.s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00004// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s
Fariborz Jahanian339798e2009-10-05 20:41:32 +00005
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: