Mercurial > hg > CbC > CbC_llvm
comparison llvm/test/TableGen/nul-char.td @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
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 | |
15 def Foo@ { | |
16 int @ ID = 42; | |
17 } | |
18 | |
19 @ | |
20 | |
21 // Comment with a NUL @ there. They are ignored in comments. | |
22 | |
23 def Bar { | |
24 int Biggie = 12345@789; | |
25 } | |
26 | |
27 #endif | |
28 |