summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/index-refs.m
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-05-25 20:05:57 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-05-25 20:05:57 +0000
commite99b084cd7af5556e2aac3b11d8adb8f6474114b (patch)
tree36a1d745f1b6200bf0d3921d265aaa9ffaa6b52b /clang/test/Index/index-refs.m
parent48e894bdc9f6a3ffdc3e7ca9bf67b5c75d392f3b (diff)
downloadbcm5719-llvm-e99b084cd7af5556e2aac3b11d8adb8f6474114b.tar.gz
bcm5719-llvm-e99b084cd7af5556e2aac3b11d8adb8f6474114b.zip
[libclang] Add a test I forgot to commit for r156890.
llvm-svn: 157491
Diffstat (limited to 'clang/test/Index/index-refs.m')
-rw-r--r--clang/test/Index/index-refs.m18
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
OpenPOWER on IntegriCloud