sv2v/test/error/struct_out_of_bounds.sv

8 lines
200 B
Systemverilog
Raw Normal View History

// pattern: pattern index 1 is out of bounds for struct packed \{..logic x;.\}
2021-10-18 05:40:12 +02:00
// location: struct_out_of_bounds.sv:4:5
module top;
struct packed {
logic x;
} s = '{ 1: 1 };
endmodule