1 // RUN: cat %s | tr '@' '\0' > %t
2 // RUN: not llvm-tblgen -DERROR1 %t 2>&1 | FileCheck --check-prefix=ERROR1 %s
4 // This test file checks that NUL is treated as an invalid character.
5 // Each at sign is replaced with a NUL before running the test.
9 // ERROR1: error: NUL character is invalid in source; treated as space
10 // ERROR1: error: NUL character is invalid in source; treated as space
11 // ERROR1: error: NUL character is invalid in source; treated as space
12 // ERROR1: error: NUL character is invalid in source; treated as space
13 // ERROR1: error: expected ';' after declaration
21 // Comment with a NUL @ there. They are ignored in comments.
24 int Biggie = 12345@789;