diff options
Diffstat (limited to 'clang/test/Index/index-refs.m')
| -rw-r--r-- | clang/test/Index/index-refs.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/Index/index-refs.m b/clang/test/Index/index-refs.m new file mode 100644 index 00000000000..b82345f9c68 --- /dev/null +++ b/clang/test/Index/index-refs.m @@ -0,0 +1,18 @@ + +@class Protocol; + +@protocol Prot +@end + +struct FooS { + int x; +}; + +void foo() { + Protocol *p = @protocol(Prot); + @encode(struct FooS); +} + +// RUN: c-index-test -index-file %s | FileCheck %s +// CHECK: [indexEntityReference]: kind: objc-protocol | name: Prot | {{.*}} | loc: 12:27 +// CHECK: [indexEntityReference]: kind: struct | name: FooS | {{.*}} | loc: 13:18 |

