1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test/TableGen/foreach-range-parse-errors0.td
Paul C. Anagnostopoulos 0830936d52 [TableGen] Add true and false literals to represent booleans
Update the Programmer's Reference document.

Add a test. Update a couple of tests with an improved error message.

Differential Revision: https://reviews.llvm.org/D90635
2020-11-05 09:07:21 -05:00

20 lines
532 B
TableGen

// RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s
class ConstantsImpl {
int Zero = 0;
int One = 1;
int Two = 2;
int Three = 3;
int Five = 5;
}
def Constants : ConstantsImpl;
// CHECK-NOT: error: Unknown or reserved token when parsing a value
// CHECK: [[FILE]]:[[@LINE+3]]:22: error: Unknown or reserved token when parsing a value
// CHECK: [[FILE]]:[[@LINE+2]]:22: error: expected integer value as end of range
// CHECK: [[FILE]]:[[@LINE+1]]:22: error: expected declaration in for
foreach Index = 0 - in {
}