30 lines · plain
1// REQUIRES: x86-registered-target2// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S %s -o %t-64.s3// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s4// RUN: %clang_cc1 -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-32.s5// RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s6 7@protocol MyProtocol8@end9 10@protocol ExtendedProtocol11@end12 13@interface ItDoesntWork<MyProtocol> {14}15-(void) Meth;16@end17 18@interface ItDoesntWork() <MyProtocol, ExtendedProtocol>19@end20 21@implementation ItDoesntWork22-(void) Meth {23 ItDoesntWork <MyProtocol, ExtendedProtocol> *p = 0;24 }25@end26 27// CHECK-LP64: __OBJC_PROTOCOL_$_ExtendedProtocol:28 29// CHECK-LP32: _OBJC_PROTOCOL_ExtendedProtocol:30