]> granicus.if.org Git - clang/commitdiff
Add another text for code completion after recovery
authorDouglas Gregor <dgregor@apple.com>
Sat, 18 Sep 2010 02:10:40 +0000 (02:10 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 18 Sep 2010 02:10:40 +0000 (02:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114257 91177308-0d34-0410-b5e6-96231b3b80d8

test/Index/complete-recovery.m

index 0b558f81ab722e9bb8e88cf4354139042a6ec5a8..ef9f8171960286be485c6629fcacbeaf61174113 100644 (file)
@@ -12,6 +12,7 @@
   z = [a2 method:1];
   blah ? blech : [a2 method:1];
   (a * a2)([a2 method:1]);
+  B *a = [a2 method:1];
 }
 @end
 
@@ -31,3 +32,4 @@
 // 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
 // RUN: c-index-test -code-completion-at=%s:14:16 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC3 %s
+// RUN: c-index-test -code-completion-at=%s:15:14 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC3 %s