aboutsummaryrefslogtreecommitdiff
path: root/test/Index/complete-declarators.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/complete-declarators.m')
-rw-r--r--test/Index/complete-declarators.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Index/complete-declarators.m b/test/Index/complete-declarators.m
index d42a3c7a6c..b3a60ded11 100644
--- a/test/Index/complete-declarators.m
+++ b/test/Index/complete-declarators.m
@@ -22,6 +22,7 @@
static P *p = 0;
}
+- (boid)method2 {}
@end
// RUN: c-index-test -code-completion-at=%s:7:4 %s | FileCheck -check-prefix=CHECK-CC0 %s
@@ -81,3 +82,8 @@
// CHECK-CC5: NotImplemented:{TypedText unsigned} (50)
// CHECK-CC5: NotImplemented:{TypedText void} (50)
// CHECK-CC5: NotImplemented:{TypedText volatile} (50)
+
+// Check that there are no duplicate entries if we code-complete after an @implementation
+// RUN: c-index-test -code-completion-at=%s:27:1 %s | FileCheck -check-prefix=CHECK-CC6 %s
+// CHECK-CC6: ObjCInterfaceDecl:{TypedText A}
+// CHECK-CC6-NOT: ObjCInterfaceDecl:{TypedText A}