mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-06 09:07:15 +02:00
Default member values are not allowed in packed structs. Check that an error is reported for them. Signed-off-by: Lars-Peter Clausen <[email protected]>
14 lines
292 B
Verilog
14 lines
292 B
Verilog
// Check that an error is reported when specifing a default member value for a
|
|
// packed struct.
|
|
|
|
module test;
|
|
struct packed {
|
|
// This should fail, default member value is not allowed for packed struct
|
|
integer x = 10;
|
|
} s;
|
|
|
|
initial begin
|
|
$display("FAILED");
|
|
end
|
|
endmodule
|