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@protocol Protocol1 5*f4a2713aSLionel Sambuc@end 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc@protocol Protocol2; 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambucvoid f(id<Protocol1,Protocol2>); 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc@protocol Protocol0; 12*f4a2713aSLionel Sambuc@protocol NewProtocol 13*f4a2713aSLionel Sambuc{ 14*f4a2713aSLionel Sambuc} 15*f4a2713aSLionel Sambuc@end 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:9:11 %s | FileCheck -check-prefix=CHECK-CC1 %s 18*f4a2713aSLionel Sambuc// CHECK-CC1: ObjCProtocolDecl:{TypedText Protocol1} 19*f4a2713aSLionel Sambuc// CHECK-CC1-NEXT: ObjCProtocolDecl:{TypedText Protocol2} 20*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:9:21 %s | FileCheck -check-prefix=CHECK-CC2 %s 21*f4a2713aSLionel Sambuc// CHECK-CC2-NOT: ObjCProtocolDecl:{TypedText Protocol1} 22*f4a2713aSLionel Sambuc// CHECK-CC2: ObjCProtocolDecl:{TypedText Protocol2} 23*f4a2713aSLionel Sambuc// RUN: c-index-test -code-completion-at=%s:12:11 %s | FileCheck -check-prefix=CHECK-CC3 %s 24*f4a2713aSLionel Sambuc// CHECK-CC3: ObjCProtocolDecl:{TypedText Protocol0} 25*f4a2713aSLionel Sambuc// CHECK-CC3-NEXT: ObjCProtocolDecl:{TypedText Protocol2} 26*f4a2713aSLionel Sambuc 27*f4a2713aSLionel Sambuc// 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 28