summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib-sync/trylock2.ml
blob: b31ace08b5641b9b44d5aedfcd93330745755421 (plain)
1
2
3
4
5
6
7
8
9
10
(* TEST
*)

(* Test Mutex.try_lock *)

let () =
  let m = Mutex.create () in
  assert (Mutex.try_lock m);
  Mutex.unlock m;
  print_endline "passed"