diff options
Diffstat (limited to 'test/Index/complete-blocks.m')
-rw-r--r-- | test/Index/complete-blocks.m | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test/Index/complete-blocks.m b/test/Index/complete-blocks.m index e7919ef..cb507e2 100644 --- a/test/Index/complete-blocks.m +++ b/test/Index/complete-blocks.m @@ -26,14 +26,22 @@ void test_B(B *b) { } @interface C -- method4:(void(^)(void))arg { }; -- method5:(void(^)())arg5 { }; +- method4:(void(^)(void))arg; +- method5:(void(^)())arg5; @end void test_C(C *c) { [c method4:^{}]; } +@interface D +- method6:(void(^)(block_t block))arg; +@end + +void test_D(D *d) { + [d method6:0]; +} + // RUN: c-index-test -code-completion-at=%s:8:1 %s | FileCheck -check-prefix=CHECK-CC1 %s // CHECK-CC1: FunctionDecl:{ResultType void}{TypedText f}{LeftParen (}{Placeholder ^int(int x, int y)block}{RightParen )} (50) // CHECK-CC1: FunctionDecl:{ResultType void}{TypedText g}{LeftParen (}{Placeholder ^(float f, double d)b}{RightParen )} (50) @@ -51,3 +59,6 @@ void test_C(C *c) { // CHECK-CC5-NOT: test_A // CHECK-CC5: {TypedText union} (50) +// RUN: c-index-test -code-completion-at=%s:42:6 %s | FileCheck -check-prefix=CHECK-CC6 %s +// CHECK-CC6: ObjCInstanceMethodDecl:{ResultType id}{TypedText method6:}{Placeholder ^(block_t block)arg} (35) + |