[cfe-commits] r157491 - /cfe/trunk/test/Index/index-refs.m

Argyrios Kyrtzidis akyrtzi at gmail.com
Fri May 25 13:05:58 PDT 2012


Author: akirtzidis
Date: Fri May 25 15:05:57 2012
New Revision: 157491

URL: http://llvm.org/viewvc/llvm-project?rev=157491&view=rev
Log:
[libclang] Add a test I forgot to commit for r156890.

Added:
    cfe/trunk/test/Index/index-refs.m

Added: cfe/trunk/test/Index/index-refs.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/index-refs.m?rev=157491&view=auto
==============================================================================
--- cfe/trunk/test/Index/index-refs.m (added)
+++ cfe/trunk/test/Index/index-refs.m Fri May 25 15:05:57 2012
@@ -0,0 +1,18 @@
+
+ at class Protocol;
+
+ at protocol Prot
+ at 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





More information about the cfe-commits mailing list