mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-08 23:04:24 +00:00
10 lines
228 B
Zig
10 lines
228 B
Zig
export fn entry() void {
|
|
var x: f32 = 0;
|
|
_ = @cmpxchgWeak(f32, &x, 1, 2, .seq_cst, .seq_cst);
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :3:22: error: expected bool, integer, enum, or pointer type; found 'f32'
|