Files
sv2v/test/error/struct_extra_named_field.sv

8 lines
248 B
Systemverilog
Raw Permalink Normal View History

2021-03-09 14:18:37 -05:00
// pattern: pattern '\{..x: 1,..y: 2.\} has extra named fields \["y"\] that are not in struct packed \{..logic x;.\}
2021-10-17 21:40:12 -06:00
// location: struct_extra_named_field.sv:4:5
2021-03-09 14:18:37 -05:00
module top;
struct packed {
logic x;
} x = '{ x: 1, y: 2 };
endmodule