1*0a6a1f1dSLionel Sambuc// REQUIRES: x86-registered-target 2f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S %s -o %t-64.s 3f4a2713aSLionel Sambuc// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s 4f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-32.s 5f4a2713aSLionel Sambuc// RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s 6f4a2713aSLionel Sambuc 7f4a2713aSLionel Sambuc@protocol MyProtocol 8f4a2713aSLionel Sambuc@end 9f4a2713aSLionel Sambuc 10f4a2713aSLionel Sambuc@protocol ExtendedProtocol 11f4a2713aSLionel Sambuc@end 12f4a2713aSLionel Sambuc 13f4a2713aSLionel Sambuc@interface ItDoesntWork<MyProtocol> { 14f4a2713aSLionel Sambuc} 15f4a2713aSLionel Sambuc-(void) Meth; 16f4a2713aSLionel Sambuc@end 17f4a2713aSLionel Sambuc 18f4a2713aSLionel Sambuc@interface ItDoesntWork() <MyProtocol, ExtendedProtocol> 19f4a2713aSLionel Sambuc@end 20f4a2713aSLionel Sambuc 21f4a2713aSLionel Sambuc@implementation ItDoesntWork 22f4a2713aSLionel Sambuc-(void) Meth { 23f4a2713aSLionel Sambuc ItDoesntWork <MyProtocol, ExtendedProtocol> *p = 0; 24f4a2713aSLionel Sambuc } 25f4a2713aSLionel Sambuc@end 26f4a2713aSLionel Sambuc 27f4a2713aSLionel Sambuc// CHECK-LP64: l_OBJC_PROTOCOL_$_ExtendedProtocol: 28f4a2713aSLionel Sambuc 29f4a2713aSLionel Sambuc// CHECK-LP32: L_OBJC_PROTOCOL_ExtendedProtocol: 30