13b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor/* Note: the RUN lines are near the end of the file, since line/column
23b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor   matter for this test. */
33b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor
43b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor@class Int1, Int2, Int3, Int4;
53b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor
63b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor@interface Int3
73b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor{
83b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor}
93b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor@end
103b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor
113b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor@interface Int2 : Int3
123b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor{
133b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor}
143b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor@end
153b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor
163b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor@implementation Int2
173b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor@end
183b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor
193b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor@implementation Int3
203b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor@end
213b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor
223b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// RUN: c-index-test -code-completion-at=%s:6:12 %s | FileCheck -check-prefix=CHECK-CC1 %s
233b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC1: ObjCInterfaceDecl:{TypedText Int1}
243b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC1: ObjCInterfaceDecl:{TypedText Int2}
253b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC1: ObjCInterfaceDecl:{TypedText Int3}
263b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC1: ObjCInterfaceDecl:{TypedText Int4}
273b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// RUN: c-index-test -code-completion-at=%s:11:12 %s | FileCheck -check-prefix=CHECK-CC2 %s
283b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC2: ObjCInterfaceDecl:{TypedText Int1}
293b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC2-NEXT: ObjCInterfaceDecl:{TypedText Int2}
300f91c8ccb398be2bd40dc402309bd79737542396Douglas Gregor// CHECK-CC2-NEXT: ObjCInterfaceDecl:{TypedText Int3}
313b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC2-NEXT: ObjCInterfaceDecl:{TypedText Int4}
323b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// RUN: c-index-test -code-completion-at=%s:11:19 %s | FileCheck -check-prefix=CHECK-CC3 %s
333b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC3: ObjCInterfaceDecl:{TypedText Int1}
343b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC3-NEXT: ObjCInterfaceDecl:{TypedText Int3}
353b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC3-NEXT: ObjCInterfaceDecl:{TypedText Int4}
363b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// RUN: c-index-test -code-completion-at=%s:16:17 %s | FileCheck -check-prefix=CHECK-CC4 %s
373b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC4: ObjCInterfaceDecl:{TypedText Int1}
383b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC4-NEXT: ObjCInterfaceDecl:{TypedText Int2}
393b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC4-NEXT: ObjCInterfaceDecl:{TypedText Int3}
403b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC4-NEXT: ObjCInterfaceDecl:{TypedText Int4}
413b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// RUN: c-index-test -code-completion-at=%s:19:17 %s | FileCheck -check-prefix=CHECK-CC5 %s
423b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC5: ObjCInterfaceDecl:{TypedText Int1}
433b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC5-NEXT: ObjCInterfaceDecl:{TypedText Int3}
443b49aca913dc0c1838321b9bb2dc9a4cb4681922Douglas Gregor// CHECK-CC5-NEXT: ObjCInterfaceDecl:{TypedText Int4}
450f91c8ccb398be2bd40dc402309bd79737542396Douglas Gregor
460f91c8ccb398be2bd40dc402309bd79737542396Douglas Gregor
470f91c8ccb398be2bd40dc402309bd79737542396Douglas Gregor// 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