Files
iverilog/ivtest/ivltests/sv_byte_array_string_fail4.v
T
Lars-Peter Clausen 6ffb4b9a3a Add regression tests for string literals assigned to byte arrays
Check that string literals can be assigned to byte arrays. Check that
invalid target array types are reported as errors.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2026-05-06 19:20:47 -07:00

9 lines
217 B
Verilog

// Check that string literals cannot be assigned to unpacked arrays whose
// element type is narrower than 8 bits.
module test;
bit [6:0] value [0:3] = "AB"; // Error: target element type is too narrow
endmodule