aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/non_float_passed_to_floatToInt.zig
blob: 2d4e0315bebcb4fb24c28aeea868cd907234e358 (plain)
1
2
3
4
5
6
7
8
9
10
export fn entry() void {
    const x = @floatToInt(i32, @as(i32, 54));
    _ = x;
}

// error
// backend=stage2
// target=native
//
// :2:32: error: expected float type, found 'i32'