sv2v/test/error/struct_missing_field.sv

7 lines
213 B
Systemverilog

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