blob: 6901168b1d09a7c1dec94d115ec5828e48fb885f [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s &&
Fariborz Jahanian090b3f72009-01-20 19:14:18 +00002// RUN: grep -e "@\\\22<X>\\\22" %t &&
3// RUN: grep -e "@\\\22<X><Y>\\\22" %t &&
4// RUN: grep -e "@\\\22<X><Y><Z>\\\22" %t &&
5// RUN: grep -e "@\\\22Foo<X><Y><Z>\\\22" %t &&
6// RUN: grep -e "{Intf=@@@@}" %t
7
8@protocol X, Y, Z;
9@class Foo;
10
11@protocol Proto
12@end
13
14@interface Intf <Proto>
15{
16id <X> IVAR_x;
17id <X, Y> IVAR_xy;
18id <X, Y, Z> IVAR_xyz;
19Foo <X, Y, Z> *IVAR_Fooxyz;
20}
21@end
22
23@implementation Intf
24@end
25
26int main()
27{
28 const char * en = @encode(Intf);
29}