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

#write test.zig {
export fn foo() void {
    var a: f32 = 2;
    _ = &a;
    _ = @as(comptime_int, @intFromFloat(a));
}
export fn bar() void {
    var a: u32 = 2;
    _ = &a;
    _ = @as(comptime_float, @floatFromInt(a));
}
#}
#update
#check errors {
test.zig:4:41: error: unable to resolve comptime value
test.zig:4:41: note: value casted to 'comptime_int' must be comptime-known
test.zig:9:43: error: unable to resolve comptime value
test.zig:9:43: note: value casted to 'comptime_float' must be comptime-known
#}
