aboutsummaryrefslogtreecommitdiff
path: root/test/Index/complete-recovery.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-17 22:41:34 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-17 22:41:34 +0000
commit94859890384652ed63f7604530f3b988ed223cf4 (patch)
tree2d1c46c8a32097667dc6cde0d5b9b3626123b44f /test/Index/complete-recovery.m
parent200b2921390bd75a659be3c77011e9a5548b7273 (diff)
Improve recovery when the middle expression of a ternary operator is ill-formed
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/complete-recovery.m')
-rw-r--r--test/Index/complete-recovery.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Index/complete-recovery.m b/test/Index/complete-recovery.m
index 66084cdcec..5141a533ae 100644
--- a/test/Index/complete-recovery.m
+++ b/test/Index/complete-recovery.m
@@ -10,6 +10,7 @@
blarg * blah = wibble;
A *a2;
z = [a2 method:1];
+ blah ? blech : [a2 method:1];
}
@end
@@ -27,3 +28,4 @@
// CHECK-CC2: NotImplemented:{TypedText sizeof}{LeftParen (}{Placeholder expression-or-type}{RightParen )}
// RUN: c-index-test -code-completion-at=%s:12:11 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC3 %s
// CHECK-CC3: ObjCInstanceMethodDecl:{ResultType void}{TypedText method:}{Placeholder (int)} (17)
+// RUN: c-index-test -code-completion-at=%s:13:22 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC3 %s