Skip to content

Commit

Permalink
Global dead code: regression test for bug fixed in #1681 (once fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Oct 18, 2024
1 parent 9ce2ee0 commit 6bf348c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/tests-compiler/global_deadcode.ml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,6 @@ let%expect_test "Bug fix in PR #1681" =
(* No field of record x should be eliminated. *)
[%expect
{|
function f(b){var x = [0, 1]; return b ? x : (x[1] = 1, [0, 3, 4]);}
function f(b){var x = [0, 1, 2]; return b ? x : (x[1] = 1, [0, 3, 4]);}
//end
|}]

0 comments on commit 6bf348c

Please sign in to comment.