[InstCombine] Signed saturation patterns
[llvm-core.git] / test / TableGen / foreach-range-parse-errors2.td
blob7717c10aaf69322a2376fec685c0aedbc73950df
1 // RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s
3 class ConstantsImpl {
4   int NegOne = -1;
7 def Constants : ConstantsImpl;
9 // CHECK: [[FILE]]:[[@LINE+2]]:38: error: invalid range, cannot be negative
10 // CHECK: [[FILE]]:[[@LINE+1]]:38: error: expected declaration in for
11 foreach Index = 0 - Constants.NegOne in {