iverilog/ivtest/ivltests/size_cast_fail2.v

13 lines
222 B
Coq
Raw Normal View History

// Check that an error is reported when using a negative value for a size cast.
module test;
localparam integer N = -1;
initial begin
int x, y;
y = N'(x); // This should fail, N is negative
end
endmodule