1 // RUN: %ProtectFileCheckOutput \
2 // RUN: not FileCheck -match-full-lines -dump-input=never -input-file %s %s 2>&1 \
3 // RUN: | FileCheck --check-prefix=ERROR --implicit-check-not=error: %s
4 // RUN: %ProtectFileCheckOutput \
5 // RUN: not FileCheck -match-full-lines -strict-whitespace -dump-input=never -input-file %s %s \
6 // RUN: 2>&1 | FileCheck --check-prefix=ERROR-STRICT --check-prefix=ERROR \
7 // RUN: --implicit-check-not=error: %s
12 trailing more whitespace
16 leading more whitespace
28 // CHECK-LABEL:Label 1
30 // CHECK:trailing whitespace
31 // CHECK:trailing more whitespace
32 // ERROR-STRICT:error: {{C}}HECK: expected string not found in input
33 // ERROR-STRICT:// {{C}}HECK:trailing whitespace
35 // CHECK-LABEL:Label 2
37 // CHECK-NEXT:leading whitespace
38 // CHECK-NEXT: leading more whitespace
39 // ERROR-STRICT:error: {{C}}HECK-NEXT: expected string not found in input
40 // ERROR-STRICT:// {{C}}HECK-NEXT:leading whitespace
42 // CHECK-LABEL:Label 3
44 // ERROR:error: {{C}}HECK: expected string not found in input
45 // ERROR:// {{C}}HECK:line
47 // CHECK-LABEL:Label 4
50 // ERROR:error: {{C}}HECK-NOT: excluded string found in input
51 // ERROR:a random thing
53 // CHECK-LABEL:Label 5
54 // CHECK-LABEL:Label 6
55 // ERROR:error: {{C}}HECK-LABEL: expected string not found in input
56 // ERROR:{{C}}HECK-LABEL:Label 6