2013-12-04 11:41:33 +08:00
|
|
|
// REQUIRES: x86-registered-target
|
2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S %s -o %t-64.s
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
|
2012-06-20 14:18:46 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-32.s
|
2013-08-12 20:51:05 +08:00
|
|
|
// RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s
|
2009-10-06 04:41:32 +08:00
|
|
|
|
|
|
|
@protocol MyProtocol
|
|
|
|
@end
|
|
|
|
|
|
|
|
@protocol ExtendedProtocol
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface ItDoesntWork<MyProtocol> {
|
|
|
|
}
|
|
|
|
-(void) Meth;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface ItDoesntWork() <MyProtocol, ExtendedProtocol>
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation ItDoesntWork
|
|
|
|
-(void) Meth {
|
|
|
|
ItDoesntWork <MyProtocol, ExtendedProtocol> *p = 0;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2019-03-14 23:17:37 +08:00
|
|
|
// CHECK-LP64: __OBJC_PROTOCOL_$_ExtendedProtocol:
|
2009-10-06 04:41:32 +08:00
|
|
|
|
2021-07-15 22:03:43 +08:00
|
|
|
// CHECK-LP32: _OBJC_PROTOCOL_ExtendedProtocol:
|