Files
sv2v/test/error/struct_logic_part_select.sv

9 lines
217 B
Systemverilog
Raw Permalink Normal View History

// pattern: illegal access to range \[0\+:1\] of s\.x, which has type logic
2021-10-17 21:40:12 -06:00
// location: struct_logic_part_select.sv:7:13
module top;
struct packed {
logic x;
} s;
initial s.x[0+:1] = 1;
endmodule