sv2v/test/error/struct_missing_field.sv

8 lines
254 B
Systemverilog

// pattern: couldn't find field 'y' from struct definition struct packed \{..logic x;..logic y;.\} in struct pattern '\{..x: 1.\}
// location: struct_missing_field.sv:4:5
module top;
struct packed {
logic x, y;
} s = '{ x: 1 };
endmodule