brintos

brintos / llvm-project-archived public Read only

0
0
Text · 991 B · 6af0198 Raw
28 lines · plain
1/* Note: the RUN lines are near the end of the file, since line/column2   matter for this test. */3 4@protocol Protocol15@end6 7@protocol Protocol2;8 9void f(id<Protocol1,Protocol2>);10 11@protocol Protocol0;12@protocol NewProtocol 13{14}15@end16 17// RUN: c-index-test -code-completion-at=%s:9:11 %s | FileCheck -check-prefix=CHECK-CC1 %s18// CHECK-CC1: ObjCProtocolDecl:{TypedText Protocol1}19// CHECK-CC1-NEXT: ObjCProtocolDecl:{TypedText Protocol2}20// RUN: c-index-test -code-completion-at=%s:9:21 %s | FileCheck -check-prefix=CHECK-CC2 %s21// CHECK-CC2-NOT: ObjCProtocolDecl:{TypedText Protocol1}22// CHECK-CC2: ObjCProtocolDecl:{TypedText Protocol2}23// RUN: c-index-test -code-completion-at=%s:12:11 %s | FileCheck -check-prefix=CHECK-CC3 %s24// CHECK-CC3: ObjCProtocolDecl:{TypedText Protocol0}25// CHECK-CC3-NEXT: ObjCProtocolDecl:{TypedText Protocol2}26 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 %s28