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

#write test.zig {
const Foo = struct {
    x: i32,
};
const a = Foo{ .x = get_it() };
extern fn get_it() i32;

export fn entry() usize {
    return @sizeOf(@TypeOf(a));
}
#}
#update
#check errors {
test.zig:4:27: error: comptime call of extern function
test.zig:4:14: note: initializer of container-level variable must be comptime-known
#}
