aboutsummaryrefslogtreecommitdiff
path: root/test/Index/print-typekind.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/print-typekind.m')
-rw-r--r--test/Index/print-typekind.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/print-typekind.m b/test/Index/print-typekind.m
new file mode 100644
index 0000000000000..68827fb7ca6e9
--- /dev/null
+++ b/test/Index/print-typekind.m
@@ -0,0 +1,10 @@
+@interface Foo
+@property (readonly) id x;
+-(int) mymethod;
+@end
+
+// RUN: c-index-test -test-print-typekind %s | FileCheck %s
+// CHECK: ObjCPropertyDecl=x:2:25 typekind=Typedef [canonical=ObjCObjectPointer]
+// CHECK: ObjCInstanceMethodDecl=mymethod:3:1 typekind=Invalid [result=Int]
+
+