brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 3b7b465 Raw
33 lines · plain
1; Check that all errors in a CHECK-NOT blocks are reported, but that FileCheck2; 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 %s6 7foo8bar9 10barrier11 12baz13 14CHECK-NOT: bar15CHECK-NOT: foo16CHECK: barrier17CHECK-NOT: baz18 19CHECK-ERRORS: multiple-check-not-failures.txt:[[#@LINE-5]]:12: error: {{C}}HECK-NOT: excluded string found in input20CHECK-ERRORS-NEXT:      {{C}}HECK-NOT: bar21CHECK-ERRORS-NEXT:     {{^}}           ^{{$}}22CHECK-ERRORS-NEXT:      multiple-check-not-failures.txt:[[#@LINE-14]]:1: note: found here23CHECK-ERRORS-NEXT:      bar24CHECK-ERRORS-NEXT: {{^}}^~~{{$}}25CHECK-ERRORS-NEXT:      multiple-check-not-failures.txt:[[#@LINE-10]]:12: error: {{C}}HECK-NOT: excluded string found in input26CHECK-ERRORS-NEXT:      {{C}}HECK-NOT: foo27CHECK-ERRORS-NEXT:     {{^}}           ^{{$}}28CHECK-ERRORS-NEXT:      multiple-check-not-failures.txt:[[#@LINE-21]]:1: note: found here29CHECK-ERRORS-NEXT:      foo30CHECK-ERRORS-NEXT: {{^}}^~~{{$}}31CHECK-ERRORS-NOT: error:32CHECK-ERRORS-NOT:      {{C}}HECK-NOT: baz33