blob: 49b290133afa074f1a4fc64baf55cd8fb80b9ace [file] [log] [blame]
NAKAMURA Takumi0acd8a72013-12-04 03:41:33 +00001// REQUIRES: x86-registered-target
John McCall9b0a7ce2011-10-02 01:16:38 +00002// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S %s -o %t-64.s
Tim Northover19ae1172013-08-12 12:51:05 +00003// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
John McCall5fb5df92012-06-20 06:18:46 +00004// RUN: %clang_cc1 -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-32.s
Tim Northover19ae1172013-08-12 12:51:05 +00005// RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s
Fariborz Jahanian092cd6e2009-10-05 20:41:32 +00006
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: