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 5ac85f2 commit e3fd37c
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" =
print_fun_decl program (Some "f");
[%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 e3fd37c

Please sign in to comment.