llvm-for-llvmta/test/TableGen/foreach-range-parse-errors1.td

9 lines
236 B
TableGen
Raw Normal View History

2022-04-25 10:02:23 +02:00
// RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s
// CHECK: [[FILE]]:[[@LINE+2]]:20: error: invalid range, cannot be negative
// CHECK: [[FILE]]:[[@LINE+1]]:20: error: expected declaration in for
foreach Index = -1 - 0 in {
}