blob: cad59b0fcdb97bfa0bbc54d31106a599572a0d76 [file] [log] [blame]
Daniel Dunbarca74ae72009-11-17 09:04:12 +00001// RUN: clang-cc -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
3// RUN: clang-cc -triple i386-apple-darwin -S %s -o %t-32.s
4// 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: