aboutsummaryrefslogtreecommitdiff
path: root/test/errors/high-form/NegVecSize.fir
diff options
context:
space:
mode:
Diffstat (limited to 'test/errors/high-form/NegVecSize.fir')
-rw-r--r--test/errors/high-form/NegVecSize.fir7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/errors/high-form/NegVecSize.fir b/test/errors/high-form/NegVecSize.fir
new file mode 100644
index 00000000..16fae565
--- /dev/null
+++ b/test/errors/high-form/NegVecSize.fir
@@ -0,0 +1,7 @@
+; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
+; CHECK: Vector type size cannot be negative
+
+circuit Top :
+ module Top :
+ wire x : UInt<3>[-5]
+