1*f4a2713aSLionel Sambuc/* Note: the RUN lines are near the end of the file, since line/column 2*f4a2713aSLionel Sambuc matter for this test. */ 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc@class Int1, Int2, Int3, Int4; 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc@interface Int3 7*f4a2713aSLionel Sambuc{ 8*f4a2713aSLionel Sambuc} 9*f4a2713aSLionel Sambuc@end 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc@interface Int2 : Int3 12*f4a2713aSLionel Sambuc{ 13*f4a2713aSLionel Sambuc} 14*f4a2713aSLionel Sambuc@end 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc@implementation Int2 17*f4a2713aSLionel Sambuc@end 18*f4a2713aSLionel Sambuc 19*f4a2713aSLionel Sambuc@implementation Int3 20*f4a2713aSLionel Sambuc@end 21*f4a2713aSLionel Sambuc 22*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:6:12 %s | FileCheck -check-prefix=CHECK-CC1 %s 23*f4a2713aSLionel Sambuc// CHECK-CC1: ObjCInterfaceDecl:{TypedText Int1} 24*f4a2713aSLionel Sambuc// CHECK-CC1: ObjCInterfaceDecl:{TypedText Int2} 25*f4a2713aSLionel Sambuc// CHECK-CC1: ObjCInterfaceDecl:{TypedText Int3} 26*f4a2713aSLionel Sambuc// CHECK-CC1: ObjCInterfaceDecl:{TypedText Int4} 27*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:11:12 %s | FileCheck -check-prefix=CHECK-CC2 %s 28*f4a2713aSLionel Sambuc// CHECK-CC2: ObjCInterfaceDecl:{TypedText Int1} 29*f4a2713aSLionel Sambuc// CHECK-CC2-NEXT: ObjCInterfaceDecl:{TypedText Int2} 30*f4a2713aSLionel Sambuc// CHECK-CC2-NEXT: ObjCInterfaceDecl:{TypedText Int3} 31*f4a2713aSLionel Sambuc// CHECK-CC2-NEXT: ObjCInterfaceDecl:{TypedText Int4} 32*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:11:19 %s | FileCheck -check-prefix=CHECK-CC3 %s 33*f4a2713aSLionel Sambuc// CHECK-CC3: ObjCInterfaceDecl:{TypedText Int1} 34*f4a2713aSLionel Sambuc// CHECK-CC3-NEXT: ObjCInterfaceDecl:{TypedText Int3} 35*f4a2713aSLionel Sambuc// CHECK-CC3-NEXT: ObjCInterfaceDecl:{TypedText Int4} 36*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:16:17 %s | FileCheck -check-prefix=CHECK-CC4 %s 37*f4a2713aSLionel Sambuc// CHECK-CC4: ObjCInterfaceDecl:{TypedText Int1} 38*f4a2713aSLionel Sambuc// CHECK-CC4-NEXT: ObjCInterfaceDecl:{TypedText Int2} 39*f4a2713aSLionel Sambuc// CHECK-CC4-NEXT: ObjCInterfaceDecl:{TypedText Int3} 40*f4a2713aSLionel Sambuc// CHECK-CC4-NEXT: ObjCInterfaceDecl:{TypedText Int4} 41*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:19:17 %s | FileCheck -check-prefix=CHECK-CC5 %s 42*f4a2713aSLionel Sambuc// CHECK-CC5: ObjCInterfaceDecl:{TypedText Int1} 43*f4a2713aSLionel Sambuc// CHECK-CC5-NEXT: ObjCInterfaceDecl:{TypedText Int3} 44*f4a2713aSLionel Sambuc// CHECK-CC5-NEXT: ObjCInterfaceDecl:{TypedText Int4} 45*f4a2713aSLionel Sambuc 46*f4a2713aSLionel Sambuc 47*f4a2713aSLionel Sambuc// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:11:12 %s | FileCheck -check-prefix=CHECK-CC2 %s 48