| 1 |
/* Note: the RUN lines are near the end of the file, since line/column |
| 2 |
matter for this test. */ |
| 3 |
|
| 4 |
@interface I1 @end |
| 5 |
@interface I2 @end |
| 6 |
@interface I3 : I2 @end |
| 7 |
|
| 8 |
@interface I1(Cat1) @end |
| 9 |
@interface I1(Cat2) @end |
| 10 |
@interface I1(Cat3) @end |
| 11 |
|
| 12 |
@interface I2 (Cat2) @end |
| 13 |
@interface I2 (Cat3) @end |
| 14 |
@interface I2 (Cat2) @end |
| 15 |
@interface I3 (Cat1) @end |
| 16 |
@interface I3 (Cat2) @end |
| 17 |
|
| 18 |
@implementation I1(Cat2) @end |
| 19 |
@implementation I1(Cat3) @end |
| 20 |
@implementation I3(Cat2) @end |
| 21 |
|
| 22 |
// RUN: c-index-test -code-completion-at=%s:12:16 %s | FileCheck -check-prefix=CHECK-CC1 %s |
| 23 |
// CHECK-CC1: ObjCCategoryDecl:{TypedText Cat1} |
| 24 |
// CHECK-CC1: ObjCCategoryDecl:{TypedText Cat2} |
| 25 |
// CHECK-CC1: ObjCCategoryDecl:{TypedText Cat3} |
| 26 |
// RUN: c-index-test -code-completion-at=%s:13:16 %s | FileCheck -check-prefix=CHECK-CC2 %s |
| 27 |
// CHECK-CC2: ObjCCategoryDecl:{TypedText Cat1} |
| 28 |
// CHECK-CC2-NEXT: ObjCCategoryDecl:{TypedText Cat3} |
| 29 |
// RUN: c-index-test -code-completion-at=%s:18:20 %s | FileCheck -check-prefix=CHECK-CC3 %s |
| 30 |
// CHECK-CC3: ObjCCategoryDecl:{TypedText Cat1} |
| 31 |
// CHECK-CC3: ObjCCategoryDecl:{TypedText Cat2} |
| 32 |
// CHECK-CC3: ObjCCategoryDecl:{TypedText Cat3} |
| 33 |
// RUN: c-index-test -code-completion-at=%s:19:20 %s | FileCheck -check-prefix=CHECK-CC4 %s |
| 34 |
// CHECK-CC4: ObjCCategoryDecl:{TypedText Cat1} |
| 35 |
// CHECK-CC4-NEXT: ObjCCategoryDecl:{TypedText Cat3} |
| 36 |
// RUN: c-index-test -code-completion-at=%s:20:20 %s | FileCheck -check-prefix=CHECK-CC5 %s |
| 37 |
// CHECK-CC5: ObjCCategoryDecl:{TypedText Cat1} |
| 38 |
// CHECK-CC5-NEXT: ObjCCategoryDecl:{TypedText Cat2} |
| 39 |
// CHECK-CC5-NEXT: ObjCCategoryDecl:{TypedText Cat3} |