| ; RUN: FileCheck -input-file %s %s -check-prefix=CHECKOK |
| ; RUN: %ProtectFileCheckOutput \ |
| ; RUN: not FileCheck -input-file %s %s -check-prefix=CHECKFAIL 2>&1 \ |
| ; RUN: | FileCheck %s -check-prefix=CHECKERROR |
| ; CHECKOK-LABEL: {{^}}label0: |
| ; CHECKOK-LABEL: {{^}}label1: |
| ; CHECKOK-LABEL: {{^}}label2: |
| ; CHECKFAIL-LABEL: {{^}}label0: |
| ; CHECKERROR: expected string not found in input |
| ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}c |
| ; CHECKFAIL-LABEL: {{^}}label1: |
| ; CHECKERROR: expected string not found in input |
| ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}a |
| ; CHECKFAIL-LABEL: {{^}}label2: |
| ; CHECKERROR: expected string not found in input |
| ; CHECKERROR-NEXT: CHECKFAIL: {{[{][{]\^[}][}]}}b |