29 lines · plain
1// RUN: cat %s | tr '@' '\0' > %t2// RUN: not llvm-tblgen -DERROR1 %t 2>&1 | FileCheck --check-prefix=ERROR1 %s3 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 ERROR18 9// ERROR1: error: NUL character is invalid in source; treated as space10// ERROR1: error: NUL character is invalid in source; treated as space11// ERROR1: error: NUL character is invalid in source; treated as space12// ERROR1: error: NUL character is invalid in source; treated as space13// ERROR1: error: expected ';' after declaration14 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#endif28 29