Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
atomicrmw_with_bool_op_not_.Xchg.zig
pretty
plain
permalink
blame
history
•
8 lines
•
173 B
1
export fn entry() void {
2
var x = false;
3
_ = @atomicRmw(bool, &x, .Add, true, .seq_cst);
4
}
5
6
// error
7
//
8
// :3:31: error: @atomicRmw with bool only allowed with .Xchg