1 // Note: the run lines follow their respective tests, since line/column
2 // matter in this test.
6 #define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
8 @interface DesignatedInitializerCompletion
10 - (instancetype)init ;
11 - (instancetype)initWithFoo:(int)foo ;
12 - (instancetype)initWithX:(int)x andY:(int)y ;
16 @implementation DesignatedInitializerCompletion
18 - (instancetype)init {
21 - (instancetype)initWithFoo:(int)foo {
24 - (instancetype)initWithX:(int)x andY:(int)y {
29 // RUN: c-index-test -code-completion-at=%s:10:22 %s | FileCheck %s
30 // RUN: c-index-test -code-completion-at=%s:11:38 %s | FileCheck %s
31 // RUN: c-index-test -code-completion-at=%s:11:29 %s | FileCheck -check-prefix=CHECK-NONE %s
32 // RUN: c-index-test -code-completion-at=%s:11:34 %s | FileCheck -check-prefix=CHECK-NONE %s
33 // RUN: c-index-test -code-completion-at=%s:12:34 %s | FileCheck %s
34 // RUN: c-index-test -code-completion-at=%s:12:46 %s | FileCheck %s
36 // RUN: c-index-test -code-completion-at=%s:18:22 %s | FileCheck %s
37 // RUN: c-index-test -code-completion-at=%s:21:38 %s | FileCheck %s
38 // RUN: c-index-test -code-completion-at=%s:24:34 %s | FileCheck %s
39 // RUN: c-index-test -code-completion-at=%s:24:46 %s | FileCheck %s
41 // CHECK: macro definition:{TypedText NS_DESIGNATED_INITIALIZER} (70)
43 // CHECK-NONE-NOT: NS_DESIGNATED_INITIALIZER