summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/foreach-range-parse-errors3.td
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/TableGen/foreach-range-parse-errors3.td')
-rw-r--r--llvm/test/TableGen/foreach-range-parse-errors3.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/TableGen/foreach-range-parse-errors3.td b/llvm/test/TableGen/foreach-range-parse-errors3.td
new file mode 100644
index 00000000000..0a282c36099
--- /dev/null
+++ b/llvm/test/TableGen/foreach-range-parse-errors3.td
@@ -0,0 +1,8 @@
+// RUN: not llvm-tblgen %s 2>&1 | FileCheck -DFILE=%s %s
+
+// CHECK: [[FILE]]:[[@LINE+2]]:21: error: expected integer or bitrange
+// CHECK: [[FILE]]:[[@LINE+1]]:21: error: expected declaration in for
+foreach Index = "0" - 1 in {
+
+}
+
OpenPOWER on IntegriCloud