Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
doc
langref
test_missized_packed_struct.zig
pretty
plain
permalink
blame
history
•
6 lines
•
197 B
1
test "missized packed struct" {
2
const S = packed struct(u32) { a: u16, b: u8 };
3
_ = S{ .a = 4, .b = 2 };
4
}
5
6
// test_error=backing integer bit width does not match total bit width of fields