blob: 4955fd0bebc156fe5e7aee22fa000a1d9a61acc9 [file] [log] [blame]
@group(0) @binding(0) var<storage, read_write> a : atomic<i32>;
@compute @workgroup_size(1)
fn compute_main() {
let v = atomicCompareExchangeWeak(&(a), 1, 1).old_value;
}