mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
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]>
15 lines
199 B
Verilog
15 lines
199 B
Verilog
// Check that declaring a dynamic array typed member in a packed struct is an
|
|
// error.
|
|
|
|
module test;
|
|
|
|
struct packed {
|
|
int x[];
|
|
} s;
|
|
|
|
initial begin
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|