langref: atomic ops are allowed on pointers

Closes #6217
This commit is contained in:
Vexu
2020-09-04 21:41:34 +03:00
parent 88724b2a89
commit 6b2f4fd20d
3 changed files with 8 additions and 8 deletions

View File

@@ -899,7 +899,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
\\ _ = @cmpxchgWeak(f32, &x, 1, 2, .SeqCst, .SeqCst);
\\}
, &[_][]const u8{
"tmp.zig:3:22: error: expected integer, enum or pointer type, found 'f32'",
"tmp.zig:3:22: error: expected bool, integer, enum or pointer type, found 'f32'",
});
cases.add("atomicrmw with float op not .Xchg, .Add or .Sub",