struct_logic_part_range.sv 213 Bytes
Newer Older
1
// pattern: illegal access to range \[0:0\] of s\.x, which has type logic
2
// location: struct_logic_part_range.sv:7:13
3 4 5 6 7 8
module top;
    struct packed {
        logic x;
    } s;
    initial s.x[0:0] = 1;
endmodule