mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
backend=auto (now the default if backend is omitted) means to let the compiler pick whatever backend it wants as the default. This is important for platforms where we don't yet have a self-hosted backend, such as loongarch64. Also purge a bunch of redundant target=native.
12 lines
215 B
Zig
12 lines
215 B
Zig
const std = @import("std");
|
|
|
|
pub fn main() void {
|
|
var bad_float :f32 = 0.0;
|
|
bad_float = bad_float + .20;
|
|
std.debug.assert(bad_float < 1.0);
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :5:29: error: expected expression, found '.'
|