iverilog/ivtest/ivltests/cast_real_invalid4.v

13 lines
209 B
Verilog

// Check that casting a dynamic array to real generates an error.
module test;
real r;
real d[];
initial begin
r = real'(d); // Error: Cast from dynamic array to real not allowed
end
endmodule