master
1export fn entry() void {
2 const E = enum(u8) {
3 a,
4 b,
5 c,
6 d,
7 };
8 var x: E = .a;
9 _ = @atomicRmw(E, &x, .Add, .b, .seq_cst);
10}
11
12// error
13//
14// :9:28: error: @atomicRmw with enum only allowed with .Xchg