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