| 1 |
|
| 2 |
@interface TestA |
| 3 |
@end |
| 4 |
|
| 5 |
@interface TestB |
| 6 |
@end |
| 7 |
|
| 8 |
@protocol Bar |
| 9 |
@end |
| 10 |
|
| 11 |
@interface Base |
| 12 |
@end |
| 13 |
|
| 14 |
@interface Foo<FirstType, SecondType> : Base |
| 15 |
@end |
| 16 |
|
| 17 |
Foo *a; |
| 18 |
Foo<TestA *, TestB *> *b; |
| 19 |
Foo<Bar> *c; |
| 20 |
Foo<TestA *, TestB *><Bar> *d; |
| 21 |
id<Bar> e; |
| 22 |
|
| 23 |
// RUN: c-index-test -test-print-type %s | FileCheck %s |
| 24 |
// CHECK: VarDecl=a:17:6 [type=Foo *] [typekind=ObjCObjectPointer] [basetype=Foo] [basekind=ObjCInterface] [isPOD=1] [pointeetype=Foo] [pointeekind=ObjCInterface] |
| 25 |
// CHECK: VarDecl=b:18:24 [type=Foo<TestA *,TestB *> *] [typekind=ObjCObjectPointer] [basetype=Foo] [basekind=ObjCInterface] [typeargs= [TestA *] [ObjCObjectPointer] [TestB *] [ObjCObjectPointer]] [isPOD=1] [pointeetype=Foo<TestA *,TestB *>] [pointeekind=ObjCObject] |
| 26 |
// CHECK: VarDecl=c:19:11 [type=Foo<Bar> *] [typekind=ObjCObjectPointer] [basetype=Foo] [basekind=ObjCInterface] [protocols=ObjCProtocolDecl=Bar:8:11 (Definition)] [isPOD=1] [pointeetype=Foo<Bar>] [pointeekind=ObjCObject] |
| 27 |
// CHECK: VarDecl=d:20:29 [type=Foo<TestA *,TestB *><Bar> *] [typekind=ObjCObjectPointer] [basetype=Foo] [basekind=ObjCInterface] [typeargs= [TestA *] [ObjCObjectPointer] [TestB *] [ObjCObjectPointer]] [protocols=ObjCProtocolDecl=Bar:8:11 (Definition)] [isPOD=1] [pointeetype=Foo<TestA *,TestB *><Bar>] [pointeekind=ObjCObject] |
| 28 |
// CHECK: VarDecl=e:21:9 [type=id<Bar>] [typekind=ObjCObjectPointer] [basetype=id] [basekind=ObjCId] [protocols=ObjCProtocolDecl=Bar:8:11 (Definition)] [isPOD=1] [pointeetype=id<Bar>] [pointeekind=ObjCObject] |