Argyrios Kyrtzidis | 6e5fa8c | 2012-05-25 20:05:57 +0000 | [diff] [blame] | 1 | |
2 | @class Protocol; | ||||
3 | |||||
4 | @protocol Prot | ||||
5 | @end | ||||
6 | |||||
7 | struct FooS { | ||||
8 | int x; | ||||
9 | }; | ||||
10 | |||||
11 | void foo() { | ||||
12 | Protocol *p = @protocol(Prot); | ||||
13 | @encode(struct FooS); | ||||
14 | } | ||||
15 | |||||
16 | // RUN: c-index-test -index-file %s | FileCheck %s | ||||
17 | // CHECK: [indexEntityReference]: kind: objc-protocol | name: Prot | {{.*}} | loc: 12:27 | ||||
18 | // CHECK: [indexEntityReference]: kind: struct | name: FooS | {{.*}} | loc: 13:18 |