aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/@import_zon_negative_zero.zig
blob: 69918c926e158f666e872424cbc50a74a49571c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
export fn entry() void {
    const f: i8 = @import("zon/negative_zero.zon");
    _ = f;
}

// error
// imports=zon/negative_zero.zon
//
// negative_zero.zon:1:2: error: integer literal '-0' is ambiguous
// negative_zero.zon:1:2: note: use '0' for an integer zero
// negative_zero.zon:1:2: note: use '-0.0' for a floating-point signed zero