sv2v/test/error/struct_extra_named_field.sv

7 lines
203 B
Systemverilog

// pattern: pattern '\{..x: 1,..y: 2.\} has extra named fields \["y"\] that are not in struct packed \{..logic x;.\}
module top;
struct packed {
logic x;
} x = '{ x: 1, y: 2 };
endmodule