mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
7 lines
197 B
Zig
7 lines
197 B
Zig
test "missized packed struct" {
|
|
const S = packed struct(u32) { a: u16, b: u8 };
|
|
_ = S{ .a = 4, .b = 2 };
|
|
}
|
|
|
|
// test_error=backing integer bit width does not match total bit width of fields
|