1 ; RUN: FileCheck -input-file %s %s -check-prefix=CHECKOK
2 ; RUN: not FileCheck -input-file %s %s -check-prefix=CHECKFAIL 2>&1 | FileCheck %s -check-prefix=CHECKERROR
16 ; CHECKOK-LABEL: {{^}}label0:
20 ; CHECKOK-LABEL: {{^}}label1:
24 ; CHECKOK-LABEL: {{^}}label2:
28 ; CHECKFAIL-LABEL: {{^}}label0:
33 ; CHECKERROR: expected string not found in input
34 ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}c
36 ; CHECKFAIL-LABEL: {{^}}label1:
41 ; CHECKERROR: expected string not found in input
42 ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}a
44 ; CHECKFAIL-LABEL: {{^}}label2:
49 ; CHECKERROR: expected string not found in input
50 ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}b