aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/cmpxchg_with_float.zig
blob: 1acfdd14d8955596cb02654b3e9e9f433e54466e (plain)
1
2
3
4
5
6
7
8
9
10
export fn entry() void {
    var x: f32 = 0;
    _ = @cmpxchgWeak(f32, &x, 1, 2, .SeqCst, .SeqCst);
}

// error
// backend=stage2
// target=native
//
// :3:22: error: expected bool, integer, enum, or pointer type; found 'f32'