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

#write test.zig {
const Foo = struct {
    a: i32,
    b: i32,
};
const foo = Foo{
    .a = 1,
    .b = 2,
};

comptime {
    const field_ptr: *i32 = @ptrFromInt(0x1234);
    const another_foo_ptr: *const Foo = @fieldParentPtr("b", field_ptr);
    _ = another_foo_ptr;
}
#}
#update
#check errors {
test.zig:12:62: error: pointer value not based on parent struct
#}
