1// Note: the run lines follow their respective tests, since line/column 2// matter in this test. 3 4// rdar://21014571 5 6#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) 7 8@interface DesignatedInitializerCompletion 9 10- (instancetype)init ; 11- (instancetype)initWithFoo:(int)foo ; 12- (instancetype)initWithX:(int)x andY:(int)y ; 13 14@end 15 16@implementation DesignatedInitializerCompletion 17 18- (instancetype)init { 19} 20 21- (instancetype)initWithFoo:(int)foo { 22} 23 24- (instancetype)initWithX:(int)x andY:(int)y { 25} 26 27@end 28 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 35 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 40 41// CHECK: macro definition:{TypedText NS_DESIGNATED_INITIALIZER} (70) 42 43// CHECK-NONE-NOT: NS_DESIGNATED_INITIALIZER 44