1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple=i686-apple-darwin9 -emit-llvm -o %t %s 2*f4a2713aSLionel Sambuc// RUN: grep -e "@\\\22<X>\\\22" %t 3*f4a2713aSLionel Sambuc// RUN: grep -e "@\\\22<X><Y>\\\22" %t 4*f4a2713aSLionel Sambuc// RUN: grep -e "@\\\22<X><Y><Z>\\\22" %t 5*f4a2713aSLionel Sambuc// RUN: grep -e "@\\\22Foo<X><Y><Z>\\\22" %t 6*f4a2713aSLionel Sambuc// RUN: grep -e "{Intf=@@@@#}" %t 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc@protocol X, Y, Z; 9*f4a2713aSLionel Sambuc@class Foo; 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc@protocol Proto 12*f4a2713aSLionel Sambuc@end 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc@interface Intf <Proto> 15*f4a2713aSLionel Sambuc{ 16*f4a2713aSLionel Sambucid <X> IVAR_x; 17*f4a2713aSLionel Sambucid <X, Y> IVAR_xy; 18*f4a2713aSLionel Sambucid <X, Y, Z> IVAR_xyz; 19*f4a2713aSLionel SambucFoo <X, Y, Z> *IVAR_Fooxyz; 20*f4a2713aSLionel SambucClass <X> IVAR_Classx; 21*f4a2713aSLionel Sambuc} 22*f4a2713aSLionel Sambuc@end 23*f4a2713aSLionel Sambuc 24*f4a2713aSLionel Sambuc@implementation Intf 25*f4a2713aSLionel Sambuc@end 26*f4a2713aSLionel Sambuc 27*f4a2713aSLionel Sambucint main() 28*f4a2713aSLionel Sambuc{ 29*f4a2713aSLionel Sambuc const char * en = @encode(Intf); 30*f4a2713aSLionel Sambuc} 31