1 // RUN: not FileCheck -match-full-lines -input-file %s %s 2>&1 \
2 // RUN: | FileCheck --check-prefix=ERROR --implicit-check-not=error: %s
3 // RUN: not FileCheck -match-full-lines -strict-whitespace -input-file %s %s 2>&1 \
4 // RUN: | FileCheck --check-prefix=ERROR-STRICT --check-prefix=ERROR --implicit-check-not=error: %s
9 trailing more whitespace
13 leading more whitespace
25 // CHECK-LABEL:Label 1
27 // CHECK:trailing whitespace
28 // CHECK:trailing more whitespace
29 // ERROR-STRICT:error: {{C}}HECK: expected string not found in input
30 // ERROR-STRICT:// {{C}}HECK:trailing whitespace
32 // CHECK-LABEL:Label 2
34 // CHECK-NEXT:leading whitespace
35 // CHECK-NEXT: leading more whitespace
36 // ERROR-STRICT:error: {{C}}HECK-NEXT: expected string not found in input
37 // ERROR-STRICT:// {{C}}HECK-NEXT:leading whitespace
39 // CHECK-LABEL:Label 3
41 // ERROR:error: {{C}}HECK: expected string not found in input
42 // ERROR:// {{C}}HECK:line
44 // CHECK-LABEL:Label 4
47 // ERROR:error: {{C}}HECK-NOT: excluded string found in input
48 // ERROR:a random thing
50 // CHECK-LABEL:Label 5
51 // CHECK-LABEL:Label 6
52 // ERROR:error: {{C}}HECK-LABEL: expected string not found in input
53 // ERROR:{{C}}HECK-LABEL:Label 6