Files
iverilog/ivtest/ivltests/sv_ap_uarray_fail2.v
T
Lars-Peter Clausen 90a1168086 Add regression tests for unpacked array assignment patterns
Check that basic assignment patterns are supported for unpacked arrays.
Check that all of packed types, reals and string arrays are supported.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2023-06-17 12:03:20 -07:00

14 lines
263 B
Verilog

// Check that an unpacked array assignment pattern with not enough elements
// results in an error.
module test;
int x[1:0];
initial begin
x = '{1}; // Should fail, less elements in assignment pattern than array
// size.
end
endmodule