Skip to content

Commit b2ca519

Browse files
committed
Smoke
1 parent f604aa1 commit b2ca519

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/simplified.ml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,10 @@ end = struct
9191

9292
let get loc = get_from (Atomic.get loc)
9393
end
94+
95+
let () =
96+
let x = Kcas.make 82 in
97+
let y = Kcas.make 40 in
98+
assert (Kcas.atomically [ CAS (x, 82, 42) ] [ CMP (y, 40) ]);
99+
assert (Kcas.get x == 42 && Kcas.get y == 40);
100+
()

0 commit comments

Comments
 (0)