blob: 6af0198baae0b0436207b8483cce40166a8285e3 [file] [log] [blame]
Douglas Gregor55385fe2009-11-18 04:19:12 +00001/* Note: the RUN lines are near the end of the file, since line/column
2 matter for this test. */
3
4@protocol Protocol1
5@end
6
7@protocol Protocol2;
8
9void f(id<Protocol1,Protocol2>);
10
Douglas Gregor083128f2009-11-18 04:49:41 +000011@protocol Protocol0;
12@protocol NewProtocol
13{
14}
15@end
16
Douglas Gregor55385fe2009-11-18 04:19:12 +000017// RUN: c-index-test -code-completion-at=%s:9:11 %s | FileCheck -check-prefix=CHECK-CC1 %s
18// CHECK-CC1: ObjCProtocolDecl:{TypedText Protocol1}
Douglas Gregor70c23352010-12-09 21:44:02 +000019// CHECK-CC1-NEXT: ObjCProtocolDecl:{TypedText Protocol2}
Douglas Gregor55385fe2009-11-18 04:19:12 +000020// RUN: c-index-test -code-completion-at=%s:9:21 %s | FileCheck -check-prefix=CHECK-CC2 %s
21// CHECK-CC2-NOT: ObjCProtocolDecl:{TypedText Protocol1}
22// CHECK-CC2: ObjCProtocolDecl:{TypedText Protocol2}
Douglas Gregor083128f2009-11-18 04:49:41 +000023// RUN: c-index-test -code-completion-at=%s:12:11 %s | FileCheck -check-prefix=CHECK-CC3 %s
24// CHECK-CC3: ObjCProtocolDecl:{TypedText Protocol0}
25// CHECK-CC3-NEXT: ObjCProtocolDecl:{TypedText Protocol2}
Douglas Gregor70c23352010-12-09 21:44:02 +000026
27// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:9:11 %s | FileCheck -check-prefix=CHECK-CC1 %s