Files
iverilog/ivtest/ivltests/struct_packed_uarray_fail.v
T
Lars-Peter Clausen cff24f77b4 Add regression tests for packed struct/union with unpacked array members
Check that a packed struct or union with an unpacked array, dynamic array
or queue as a member is detected as an error.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2022-09-15 12:53:29 +02:00

15 lines
202 B
Verilog

// Check that declaring an unpacked array typed member in a packed struct is an
// error.
module test;
struct packed {
int x[2];
} s;
initial begin
$display("FAILED");
end
endmodule