diff --git a/tests/verilog/issue4402.ys b/tests/verilog/issue4402.ys new file mode 100644 index 000000000..82133f60e --- /dev/null +++ b/tests/verilog/issue4402.ys @@ -0,0 +1,20 @@ +# Issue #4402: read_verilog doesn't respect signed keyword +# +# write_verilog drops the signed keyword from input port declarations, +# even though the internal comparison logic is correctly preserved via +# explicit $signed() casts. The port declaration should retain signed +# so that the interface contract is correct for downstream tools. + +! mkdir -p temp + +read_verilog < 11), giving k = 0. + +read_verilog <