1export fn entry1() void {
2 const U = packed union {
3 a: u1,
4 b: u2,
5 };
6 _ = @as(U, undefined);
7}
8
9// error
10//
11// :4:12: error: field bit width does not match earlier field
12// :4:12: note: field type 'u2' has bit width '2'
13// :3:12: note: other field type 'u1' has bit width '1'
14// :4:12: note: all fields in a packed union must have the same bit width