aboutsummaryrefslogtreecommitdiff
path: root/test/TableGen/BitsInitOverflow.td
diff options
context:
space:
mode:
Diffstat (limited to 'test/TableGen/BitsInitOverflow.td')
-rw-r--r--test/TableGen/BitsInitOverflow.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/TableGen/BitsInitOverflow.td b/test/TableGen/BitsInitOverflow.td
new file mode 100644
index 0000000000..c0b5da90dd
--- /dev/null
+++ b/test/TableGen/BitsInitOverflow.td
@@ -0,0 +1,5 @@
+// RUN: not tblgen %s
+
+def {
+ bits<2> X = 5; // bitfield is too small, reject
+}