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