blob: 07a53367557a04d8f3b8ea8a71d47996d2e6c0c7 [file] [log] [blame]
Daniel Dunbara45cf5b2009-03-24 02:24:46 +00001// RUN: clang-cc -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s &&
Fariborz Jahanian218c6302009-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 &&
Steve Narofff0c86112009-10-28 22:03:49 +00006// RUN: grep -e "{Intf=@@@@#}" %t
Fariborz Jahanian218c6302009-01-20 19:14:18 +00007
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;
Steve Narofff0c86112009-10-28 22:03:49 +000020Class <X> IVAR_Classx;
Fariborz Jahanian218c6302009-01-20 19:14:18 +000021}
22@end
23
24@implementation Intf
25@end
26
27int main()
28{
29 const char * en = @encode(Intf);
30}