1; Check handling of match-time diagnostics for invalid patterns (e.g., 2; substitution overflow) in the case of expected patterns (e.g., CHECK). 3 4RUN: echo > %t.chk \ 5RUN: 'CHECK: [[#0x8000000000000000+0x8000000000000000]] [[UNDEFVAR]]' 6RUN: echo > %t.in '10000000000000000' 7 8 ERR-NOT:{{.}} 9 ERR:{{.*}}: error: unable to substitute variable or numeric expression: overflow error 10 ERR-NEXT:CHECK: {{.*}} 11 ERR-NEXT:{{ *}}^ 12 ERR-NEXT:<stdin>:1:1: note: uses undefined variable(s): "UNDEFVAR" 13 ERR-NEXT:10000000000000000 14 ERR-NEXT:^ 15 ERR-NOT:{{error|note|remark}}: 16 17 DUMP:<<<<<< 18DUMP-NEXT: 1: 10000000000000000 19DUMP-NEXT:check:1'0 X~~~~~~~~~~~~~~~~~ error: match failed for invalid pattern 20DUMP-NEXT:check:1'1 unable to substitute variable or numeric expression: overflow error 21DUMP-NEXT:check:1'2 uses undefined variable(s): "UNDEFVAR" 22DUMP-NEXT:>>>>>> 23 24;-------------------------------------------------- 25; Check -dump-input=never cases. 26;-------------------------------------------------- 27 28RUN: %ProtectFileCheckOutput \ 29RUN: not FileCheck -dump-input=never %t.chk < %t.in 2>&1 \ 30RUN: | FileCheck %s -match-full-lines -check-prefixes=ERR 31 32RUN: %ProtectFileCheckOutput \ 33RUN: not FileCheck -dump-input=never -v %t.chk < %t.in 2>&1 \ 34RUN: | FileCheck %s -match-full-lines -check-prefixes=ERR 35 36RUN: %ProtectFileCheckOutput \ 37RUN: not FileCheck -dump-input=never -vv %t.chk < %t.in 2>&1 \ 38RUN: | FileCheck %s -match-full-lines -check-prefixes=ERR 39 40;-------------------------------------------------- 41; Check -dump-input=fail cases. 42;-------------------------------------------------- 43 44RUN: %ProtectFileCheckOutput \ 45RUN: not FileCheck -dump-input=fail %t.chk < %t.in 2>&1 \ 46RUN: | FileCheck %s -match-full-lines -check-prefixes=ERR,DUMP 47 48RUN: %ProtectFileCheckOutput \ 49RUN: not FileCheck -dump-input=fail -v %t.chk < %t.in 2>&1 \ 50RUN: | FileCheck %s -match-full-lines -check-prefixes=ERR,DUMP 51 52RUN: %ProtectFileCheckOutput \ 53RUN: not FileCheck -dump-input=fail -vv %t.chk < %t.in 2>&1 \ 54RUN: | FileCheck %s -match-full-lines -check-prefixes=ERR,DUMP 55