Skip to content

Commit

Permalink
Tests: prevent flambda eliminating closures.
Browse files Browse the repository at this point in the history
  • Loading branch information
yallop committed Dec 6, 2019
1 parent d0cd550 commit 760f638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-funptrs/test_funptrs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct

let make_f () : (int -> int) * ([`Live|`Released] -> unit) =
let closure_status = ref `Live in
let f = (+) 1 in
let f = !(ref (+)) 1 in
Gc.finalise (fun _ -> closure_status := `Released) f;
f, (fun status ->
Gc.full_major ();
Expand Down

0 comments on commit 760f638

Please sign in to comment.