summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/foreach-range-parse-errors1.td
blob: 5461a77703be30dc1e82326cdb21dc239bdbe5ac (plain)
1
2
3
4
5
6
7
8
// 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 {

}

OpenPOWER on IntegriCloud