aboutsummaryrefslogtreecommitdiff
path: root/test/errors/width/SmallWidth.fir
diff options
context:
space:
mode:
Diffstat (limited to 'test/errors/width/SmallWidth.fir')
-rw-r--r--test/errors/width/SmallWidth.fir13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/errors/width/SmallWidth.fir b/test/errors/width/SmallWidth.fir
new file mode 100644
index 00000000..9e26699e
--- /dev/null
+++ b/test/errors/width/SmallWidth.fir
@@ -0,0 +1,13 @@
+; RUN: firrtl -i %s -o %s.v -X verilog -p ciwT 2>&1 | tee %s.out | FileCheck %s
+; CHECK: Width too small for constant "h121".
+; CHECK: Width too small for constant "h13333".
+
+circuit Top :
+ module Top :
+ output z : UInt
+
+ z := add(UInt<4>("h121"),UInt<3>("h13333"))
+
+
+
+