#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
const Foo = packed struct(u32) {
    x: u1,
};
fn bar(_: Foo) callconv(.c) void {}
export fn entry() void {
    bar(.{ .x = 0 });
}
#}
#update
#check errors {
test.zig:1:20: error: backing integer bit width does not match total bit width of fields
test.zig:1:27: note: backing integer 'u32' has bit width '32'
test.zig:1:20: note: struct fields have total bit width '1'
#}
