Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple=i686-apple-darwin9 -emit-llvm -o %t %s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // 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 Naroff | 27d20a2 | 2009-10-28 22:03:49 +0000 | [diff] [blame] | 6 | // RUN: grep -e "{Intf=@@@@#}" %t |
Fariborz Jahanian | 090b3f7 | 2009-01-20 19:14:18 +0000 | [diff] [blame] | 7 | |
| 8 | @protocol X, Y, Z; |
| 9 | @class Foo; |
| 10 | |
| 11 | @protocol Proto |
| 12 | @end |
| 13 | |
| 14 | @interface Intf <Proto> |
| 15 | { |
| 16 | id <X> IVAR_x; |
| 17 | id <X, Y> IVAR_xy; |
| 18 | id <X, Y, Z> IVAR_xyz; |
| 19 | Foo <X, Y, Z> *IVAR_Fooxyz; |
Steve Naroff | 27d20a2 | 2009-10-28 22:03:49 +0000 | [diff] [blame] | 20 | Class <X> IVAR_Classx; |
Fariborz Jahanian | 090b3f7 | 2009-01-20 19:14:18 +0000 | [diff] [blame] | 21 | } |
| 22 | @end |
| 23 | |
| 24 | @implementation Intf |
| 25 | @end |
| 26 | |
| 27 | int main() |
| 28 | { |
| 29 | const char * en = @encode(Intf); |
| 30 | } |