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 to
4 # unsigned char first, so it sign-extended beyond what unsigned char or EOF can
5 # represent. C says that has undefined behavior, and it has caused stack dumps
8 //------------------------------------------------
9 RUN: %ProtectFileCheckOutput \
10 RUN: not FileCheck -check-prefix=BEFORE-PREFIX %s < /dev/null 2>&1 | \
11 RUN: FileCheck -check-prefix=ERR-EMPTY-CHECK %s
15 ERR-EMPTY-CHECK: error: found empty check string
17 //------------------------------------------------
18 RUN: %ProtectFileCheckOutput \
19 RUN: not FileCheck -check-prefix=AFTER-PREFIX %s < /dev/null 2>&1 | \
20 RUN: FileCheck -check-prefix=ERR-NO-CHECK %s
24 ERR-NO-CHECK: error: no check strings found
26 //------------------------------------------------
27 RUN: %ProtectFileCheckOutput \
28 RUN: not FileCheck -check-prefix=BEFORE-VAR %s < /dev/null 2>&1 | \
29 RUN: FileCheck -check-prefix=ERR-BAD-VAR %s
33 ERR-BAD-VAR: error: invalid variable name
35 //------------------------------------------------
36 RUN: %ProtectFileCheckOutput \
37 RUN: not FileCheck -check-prefix=AFTER-VAR %s < /dev/null 2>&1 | \
38 RUN: FileCheck -check-prefix=ERR-BAD-STRING-VAR %s
42 ERR-BAD-STRING-VAR: error: invalid name in string variable definition