xref: /llvm-project/llvm/test/FileCheck/multiple-check-not-failures.txt (revision 2c9131665d00c83a13c90db26c4fafaccbc27822)
1; Check that all errors in a CHECK-NOT blocks are reported, but that FileCheck
2; does not check past the block.
3RUN: %ProtectFileCheckOutput \
4RUN: not FileCheck --dump-input=never --input-file %s %s 2>&1 | \
5RUN:   FileCheck --strict-whitespace --check-prefix CHECK-ERRORS %s
6
7foo
8bar
9
10barrier
11
12baz
13
14CHECK-NOT: bar
15CHECK-NOT: foo
16CHECK: barrier
17CHECK-NOT: baz
18
19CHECK-ERRORS: multiple-check-not-failures.txt:[[#@LINE-5]]:12: error: {{C}}HECK-NOT: excluded string found in input
20CHECK-ERRORS-NEXT:      {{C}}HECK-NOT: bar
21CHECK-ERRORS-NEXT:     {{^}}           ^{{$}}
22CHECK-ERRORS-NEXT:      multiple-check-not-failures.txt:[[#@LINE-14]]:1: note: found here
23CHECK-ERRORS-NEXT:      bar
24CHECK-ERRORS-NEXT: {{^}}^~~{{$}}
25CHECK-ERRORS-NEXT:      multiple-check-not-failures.txt:[[#@LINE-10]]:12: error: {{C}}HECK-NOT: excluded string found in input
26CHECK-ERRORS-NEXT:      {{C}}HECK-NOT: foo
27CHECK-ERRORS-NEXT:     {{^}}           ^{{$}}
28CHECK-ERRORS-NEXT:      multiple-check-not-failures.txt:[[#@LINE-21]]:1: note: found here
29CHECK-ERRORS-NEXT:      foo
30CHECK-ERRORS-NEXT: {{^}}^~~{{$}}
31CHECK-ERRORS-NOT: error:
32CHECK-ERRORS-NOT:      {{C}}HECK-NOT: baz
33