1// RUN: cat %s | tr '@' '\0' > %t 2// RUN: not llvm-tblgen -DERROR1 %t 2>&1 | FileCheck --check-prefix=ERROR1 %s 3 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. 6 7#ifdef ERROR1 8 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 14 15def Foo@ { 16 int @ ID = 42; 17} 18 19@ 20 21// Comment with a NUL @ there. They are ignored in comments. 22 23def Bar { 24 int Biggie = 12345@789; 25} 26 27#endif 28 29