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
6# 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 %s
12
13 BEFORE-PREFIX:
14^
15ERR-EMPTY-CHECK: error: found empty check string
16
17//------------------------------------------------
18RUN: %ProtectFileCheckOutput \
19RUN: not FileCheck -check-prefix=AFTER-PREFIX %s < /dev/null 2>&1 | \
20RUN:   FileCheck -check-prefix=ERR-NO-CHECK %s
21
22AFTER-PREFIX :
23            ^
24ERR-NO-CHECK: error: no check strings found
25
26//------------------------------------------------
27RUN: %ProtectFileCheckOutput \
28RUN: not FileCheck -check-prefix=BEFORE-VAR %s < /dev/null 2>&1 | \
29RUN:   FileCheck -check-prefix=ERR-BAD-VAR %s
30
31BEFORE-VAR: [[ VAR:]]
32              ^
33ERR-BAD-VAR: error: invalid variable name
34
35//------------------------------------------------
36RUN: %ProtectFileCheckOutput \
37RUN: not FileCheck -check-prefix=AFTER-VAR %s < /dev/null 2>&1 | \
38RUN:   FileCheck -check-prefix=ERR-BAD-STRING-VAR %s
39
40AFTER-VAR: [[VAR :]]
41                ^
42ERR-BAD-STRING-VAR: error: invalid name in string variable definition
43