blob: f84b6248b8e6affe88364e0ba7c1301b49be492b [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
11// RUN: c-index-test -code-completion-at=%s:9:11 %s | FileCheck -check-prefix=CHECK-CC1 %s
12// CHECK-CC1: ObjCProtocolDecl:{TypedText Protocol1}
13// CHECK-CC1: ObjCProtocolDecl:{TypedText Protocol2}
14// RUN: c-index-test -code-completion-at=%s:9:21 %s | FileCheck -check-prefix=CHECK-CC2 %s
15// CHECK-CC2-NOT: ObjCProtocolDecl:{TypedText Protocol1}
16// CHECK-CC2: ObjCProtocolDecl:{TypedText Protocol2}