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 8 9Label 1 10a line 11trailing whitespace 12trailing more whitespace 13Label 2 14a line 15 leading whitespace 16 leading more whitespace 17 18Label 3 19a line 20 21Label 4 22a line 23a random thing 24 25Label 5 26Label 66 27 28// CHECK-LABEL:Label 1 29// CHECK:a line 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 34 35// CHECK-LABEL:Label 2 36// CHECK:a line 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 41 42// CHECK-LABEL:Label 3 43// CHECK:line 44// ERROR:error: {{C}}HECK: expected string not found in input 45// ERROR:// {{C}}HECK:line 46 47// CHECK-LABEL:Label 4 48// CHECK:a line 49// CHECK-NOT:random 50// ERROR:error: {{C}}HECK-NOT: excluded string found in input 51// ERROR:a random thing 52 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 57