aboutsummaryrefslogtreecommitdiff
path: root/test/Index/complete-documentation-properties.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/complete-documentation-properties.m')
-rw-r--r--test/Index/complete-documentation-properties.m24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/Index/complete-documentation-properties.m b/test/Index/complete-documentation-properties.m
index d423f84d22..774a02021e 100644
--- a/test/Index/complete-documentation-properties.m
+++ b/test/Index/complete-documentation-properties.m
@@ -49,6 +49,7 @@
p = [self PropertyInPrimaryClass];
p = [self Record];
[self setThisRecord : (id)0 ];
+ p = self.GetterInClassExtension;
return 0;
}
@end
@@ -66,3 +67,26 @@
// RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:51:9 %s | FileCheck -check-prefix=CC5 %s
// CHECK-CC5: {TypedText setThisRecord:}{Placeholder (id)}{{.*}}(brief comment: This is Record)
+
+// RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:52:12 %s | FileCheck -check-prefix=CC6 %s
+// CHECK-CC6: {TypedText GetterInClassExtension}{{.*}}(brief comment: This is PropertyInClassExtension)
+
+@interface AnotherAppDelegate
+/**
+ \brief This is ReadonlyProperty
+*/
+@property (getter = ReadonlyGetter) int MyProperty;
+/**
+ \brief This is getter = ReadonlyGetter
+*/
+- (int) ReadonlyGetter;
+@end
+
+@implementation AnotherAppDelegate
+- (int) PropertyInPrimaryClass {
+self.ReadonlyGetter;
+}
+@end
+// RUN: env CINDEXTEST_COMPLETION_BRIEF_COMMENTS=1 c-index-test -code-completion-at=%s:87:6 %s | FileCheck -check-prefix=CC7 %s
+// CHECK-CC7: {TypedText ReadonlyGetter}{{.*}}(brief comment: This is getter = ReadonlyGetter)
+