summaryrefslogtreecommitdiffstats
path: root/test/Index/complete-properties.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/complete-properties.m')
-rw-r--r--test/Index/complete-properties.m21
1 files changed, 20 insertions, 1 deletions
diff --git a/test/Index/complete-properties.m b/test/Index/complete-properties.m
index 80e10e7..725f180 100644
--- a/test/Index/complete-properties.m
+++ b/test/Index/complete-properties.m
@@ -1,6 +1,6 @@
/* Note: the RUN lines are near the end of the file, since line/column
matter for this test. */
-
+@class MyClass;
@interface I1
{
id StoredProp3;
@@ -21,6 +21,14 @@
@dynamic Prop4;
@end
+@interface I3 : I2
+@property id Prop3;
+@end
+
+id test(I3 *i3) {
+ return i3.Prop3;
+}
+
// RUN: c-index-test -code-completion-at=%s:20:13 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText Prop0}
// CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText Prop1}
@@ -38,3 +46,14 @@
// RUN: c-index-test -code-completion-at=%s:21:10 %s | FileCheck -check-prefix=CHECK-CC4 %s
// CHECK-CC4: ObjCPropertyDecl:{ResultType int}{TypedText Prop0}
// CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop4}
+
+// RUN: c-index-test -code-completion-at=%s:29:13 %s | FileCheck -check-prefix=CHECK-CC5 %s
+// CHECK-CC5: ObjCPropertyDecl:{ResultType int}{TypedText Prop0} (35)
+// CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText Prop1} (35)
+// CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType float}{TypedText Prop2} (35)
+// CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop3} (35)
+// CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop4} (35)
+
+// RUN: c-index-test -code-completion-at=%s:9:11 %s | FileCheck -check-prefix=CHECK-CC6 %s
+// CHECK-CC6: ObjCInterfaceDecl:{TypedText MyClass} (50)
+
OpenPOWER on IntegriCloud