Files
iverilog/ivtest/ivltests/sv_ap_uarray_fail1.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
273 B
Verilog

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