diff options
Diffstat (limited to 'llvm/test/TableGen/foreach-range-parse-errors1.td')
-rw-r--r-- | llvm/test/TableGen/foreach-range-parse-errors1.td | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/TableGen/foreach-range-parse-errors1.td b/llvm/test/TableGen/foreach-range-parse-errors1.td new file mode 100644 index 00000000000..5461a77703b --- /dev/null +++ b/llvm/test/TableGen/foreach-range-parse-errors1.td @@ -0,0 +1,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 { + +} + |