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 @@
+
+@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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits