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