Files
iverilog/ivtest/ivltests/struct_packed_queue_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

14 lines
189 B
Verilog

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