summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/complete-at-directives.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-13 21:54:15 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-13 21:54:15 +0000
commit48d462573d8f0099ce48dcd5793ac04930a8426d (patch)
tree6a07ada29d91e5f172c60f5004b90fca8ecf2e0d /clang/test/Index/complete-at-directives.m
parentfb40a8e5f10a26a6c852e74c4b07e5e1c8b7bf36 (diff)
downloadbcm5719-llvm-48d462573d8f0099ce48dcd5793ac04930a8426d.tar.gz
bcm5719-llvm-48d462573d8f0099ce48dcd5793ac04930a8426d.zip
Code-completion for @public, @protected, @private, @package.
llvm-svn: 93361
Diffstat (limited to 'clang/test/Index/complete-at-directives.m')
-rw-r--r--clang/test/Index/complete-at-directives.m15
1 files changed, 14 insertions, 1 deletions
diff --git a/clang/test/Index/complete-at-directives.m b/clang/test/Index/complete-at-directives.m
index a8aa499d10a..6db47d20ebc 100644
--- a/clang/test/Index/complete-at-directives.m
+++ b/clang/test/Index/complete-at-directives.m
@@ -1,5 +1,5 @@
/* Run lines are at the end, since line/column matter in this test. */
-@interface MyClass { }
+@interface MyClass { @public }
@end
@implementation MyClass
@@ -44,3 +44,16 @@
// CHECK-CC5: ObjCInterfaceDecl:{TypedText MyClass}
// CHECK-CC5: TypedefDecl:{TypedText SEL}
// CHECK-CC5: NotImplemented:{TypedText _Bool}
+
+// RUN: c-index-test -code-completion-at=%s:2:23 %s | FileCheck -check-prefix=CHECK-CC6 %s
+// CHECK-CC6: NotImplemented:{TypedText package}
+// CHECK-CC6: NotImplemented:{TypedText private}
+// CHECK-CC6: NotImplemented:{TypedText protected}
+// CHECK-CC6: NotImplemented:{TypedText public}
+
+// RUN: c-index-test -code-completion-at=%s:2:22 %s | FileCheck -check-prefix=CHECK-CC7 %s
+// CHECK-CC7: NotImplemented:{TypedText @package}
+// CHECK-CC7: NotImplemented:{TypedText @private}
+// CHECK-CC7: NotImplemented:{TypedText @protected}
+// CHECK-CC7: NotImplemented:{TypedText @public}
+// CHECK-CC7: NotImplemented:{TypedText _Bool}
OpenPOWER on IntegriCloud