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

#write test.zig {
export fn a() void {
    var box = Box{ .field = 0 };
    _ = &box;
    box.*.field = 1;
}
export fn b() void {
    var box = Box{ .field = 0 };
    const box_ptr = &box;
    box_ptr.*.*.field = 1;
}
pub const Box = struct {
    field: i32,
};
#}
#update
#check errors {
test.zig:4:8: error: cannot dereference non-pointer type 'test.Box'
test.zig:11:17: note: struct declared here
test.zig:9:14: error: cannot dereference non-pointer type 'test.Box'
test.zig:11:17: note: struct declared here
#}
