43 lines · plain
1# This file contains characters that render as spaces (at least for me in vim)2# but are encoded as 160. Each is indicated with a "^" on the following line.3# FileCheck used to call functions like isalnum on each without casting to4# unsigned char first, so it sign-extended beyond what unsigned char or EOF can5# represent. C says that has undefined behavior, and it has caused stack dumps6# under Windows.7 8//------------------------------------------------9RUN: %ProtectFileCheckOutput \10RUN: not FileCheck -check-prefix=BEFORE-PREFIX %s < /dev/null 2>&1 | \11RUN: FileCheck -check-prefix=ERR-EMPTY-CHECK %s12 13 BEFORE-PREFIX:14^15ERR-EMPTY-CHECK: error: found empty check string16 17//------------------------------------------------18RUN: %ProtectFileCheckOutput \19RUN: not FileCheck -check-prefix=AFTER-PREFIX %s < /dev/null 2>&1 | \20RUN: FileCheck -check-prefix=ERR-NO-CHECK %s21 22AFTER-PREFIX :23 ^24ERR-NO-CHECK: error: no check strings found25 26//------------------------------------------------27RUN: %ProtectFileCheckOutput \28RUN: not FileCheck -check-prefix=BEFORE-VAR %s < /dev/null 2>&1 | \29RUN: FileCheck -check-prefix=ERR-BAD-VAR %s30 31BEFORE-VAR: [[ VAR:]]32 ^33ERR-BAD-VAR: error: invalid variable name34 35//------------------------------------------------36RUN: %ProtectFileCheckOutput \37RUN: not FileCheck -check-prefix=AFTER-VAR %s < /dev/null 2>&1 | \38RUN: FileCheck -check-prefix=ERR-BAD-STRING-VAR %s39 40AFTER-VAR: [[VAR :]]41 ^42ERR-BAD-STRING-VAR: error: invalid name in string variable definition43