aboutsummaryrefslogtreecommitdiffstats
path: root/tests/svtypes/static_cast_negative.ys
diff options
context:
space:
mode:
Diffstat (limited to 'tests/svtypes/static_cast_negative.ys')
-rw-r--r--tests/svtypes/static_cast_negative.ys4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/svtypes/static_cast_negative.ys b/tests/svtypes/static_cast_negative.ys
new file mode 100644
index 000000000..4f9e8cf6e
--- /dev/null
+++ b/tests/svtypes/static_cast_negative.ys
@@ -0,0 +1,4 @@
+logger -expect error "Static cast with zero or negative size" 1
+read_verilog -sv <<EOT
+module top; wire [7:0] a = (-1)'(a); endmodule
+EOT