Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Index / complete-designated-initializer.m
blob6459f1a987afc6bc18442451cfceb92d2e37bd4c
1 // Note: the run lines follow their respective tests, since line/column
2 // matter in this test.
4 #define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
6 @interface DesignatedInitializerCompletion
8 - (instancetype)init ;
9 - (instancetype)initWithFoo:(int)foo ;
10 - (instancetype)initWithX:(int)x andY:(int)y ;
12 @end
14 @implementation DesignatedInitializerCompletion
16 - (instancetype)init {
19 - (instancetype)initWithFoo:(int)foo {
22 - (instancetype)initWithX:(int)x andY:(int)y {
25 @end
27 // RUN: c-index-test -code-completion-at=%s:8:22 %s | FileCheck %s
28 // RUN: c-index-test -code-completion-at=%s:9:38 %s | FileCheck %s
29 // RUN: c-index-test -code-completion-at=%s:9:29 %s | FileCheck -check-prefix=CHECK-NONE %s
30 // RUN: c-index-test -code-completion-at=%s:9:34 %s | FileCheck -check-prefix=CHECK-NONE %s
31 // RUN: c-index-test -code-completion-at=%s:10:34 %s | FileCheck %s
32 // RUN: c-index-test -code-completion-at=%s:10:46 %s | FileCheck %s
34 // RUN: c-index-test -code-completion-at=%s:16:22 %s | FileCheck %s
35 // RUN: c-index-test -code-completion-at=%s:19:38 %s | FileCheck %s
36 // RUN: c-index-test -code-completion-at=%s:22:34 %s | FileCheck %s
37 // RUN: c-index-test -code-completion-at=%s:22:46 %s | FileCheck %s
39 // CHECK: macro definition:{TypedText NS_DESIGNATED_INITIALIZER} (70)
41 // CHECK-NONE-NOT: NS_DESIGNATED_INITIALIZER