aboutsummaryrefslogtreecommitdiff
path: root/test/Index/complete-exprs.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/complete-exprs.m')
-rw-r--r--test/Index/complete-exprs.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Index/complete-exprs.m b/test/Index/complete-exprs.m
index a1933567f7..9d11010ca4 100644
--- a/test/Index/complete-exprs.m
+++ b/test/Index/complete-exprs.m
@@ -11,6 +11,7 @@ typedef signed char BOOL;
@implementation A
- (int)method:(id)param1 {
+ for(BOOL B = YES; ; ) { }
}
@end
@@ -21,3 +22,8 @@ typedef signed char BOOL;
// CHECK-CC1: macro definition:{TypedText NO} (65)
// CHECK-CC1: NotImplemented:{ResultType A *}{TypedText self} (8)
// CHECK-CC1: macro definition:{TypedText YES} (65)
+// RUN: c-index-test -code-completion-at=%s:14:7 %s | FileCheck -check-prefix=CHECK-CC2 %s
+// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:14:7 %s | FileCheck -check-prefix=CHECK-CC2 %s
+// CHECK-CC2: TypedefDecl:{TypedText BOOL} (50)
+// CHECK-CC2: NotImplemented:{TypedText char} (50)
+// CHECK-CC2: NotImplemented:{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )} (30)