diff options
Diffstat (limited to 'test/errors/width/NegWidth.fir')
| -rw-r--r-- | test/errors/width/NegWidth.fir | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/errors/width/NegWidth.fir b/test/errors/width/NegWidth.fir new file mode 100644 index 00000000..5d5bbf43 --- /dev/null +++ b/test/errors/width/NegWidth.fir @@ -0,0 +1,9 @@ +; RUN: firrtl -i %s -o %s.v -X verilog -p ciwT 2>&1 | tee %s.out | FileCheck %s +; CHECK: Width cannot be negative or zero. + +circuit Top : + module Top : + output y : UInt + + wire x : UInt<2> + y := shr(x,4) |
