blob: 87bda46faeaa6210119c7aecfd5e54ed5748914c [file] [log] [blame]
Fariborz Jahanian339798e2009-10-05 20:41:32 +00001// RUN: clang-cc -triple x86_64-apple-darwin10 -S %s -o %t-64.s &&
2// 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 &&
5// RUN: true
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: