1 ; RUN: FileCheck -input-file %s %s -check-prefix=CHECKOK
3 ; RUN: %ProtectFileCheckOutput \
4 ; RUN: not FileCheck -input-file %s %s -check-prefix=CHECKFAIL 2>&1 \
5 ; RUN: | FileCheck %s -check-prefix=CHECKERROR
19 ; CHECKOK-LABEL: {{^}}label0:
23 ; CHECKOK-LABEL: {{^}}label1:
27 ; CHECKOK-LABEL: {{^}}label2:
31 ; CHECKFAIL-LABEL: {{^}}label0:
36 ; CHECKERROR: expected string not found in input
37 ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}c
39 ; CHECKFAIL-LABEL: {{^}}label1:
44 ; CHECKERROR: expected string not found in input
45 ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}a
47 ; CHECKFAIL-LABEL: {{^}}label2:
52 ; CHECKERROR: expected string not found in input
53 ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}b