summaryrefslogtreecommitdiff
path: root/test/Index/index-pch-objc.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/index-pch-objc.m')
-rw-r--r--test/Index/index-pch-objc.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/index-pch-objc.m b/test/Index/index-pch-objc.m
new file mode 100644
index 0000000000..fd89988d5c
--- /dev/null
+++ b/test/Index/index-pch-objc.m
@@ -0,0 +1,10 @@
+// RUN: c-index-test -write-pch %t.pch %s
+// RUN: env LIBCLANG_NOTHREADS=1 c-index-test -index-tu %t.pch | FileCheck %s
+
+@interface SomeClass
+@property (retain) id foo;
+@end
+@implementation SomeClass
+@end
+
+// CHECK: [indexDeclaration]: kind: objc-ivar | name: _foo