diff --git a/compiler/tests-compiler/gh1051.ml b/compiler/tests-compiler/gh1051.ml index 923a29ae35..02045f8072 100644 --- a/compiler/tests-compiler/gh1051.ml +++ b/compiler/tests-compiler/gh1051.ml @@ -23,7 +23,9 @@ let prog = {|let () = Printf.printf "%nx" 0xffffffffn;;|} let%expect_test _ = Util.compile_and_run ~skip_modern:true prog; - [%expect {| + [%expect + {| +Warning: integer overflow: integer 0xffffffff (4294967295) truncated to 0xffffffff (-1); the generated code might be incorrect. ffffffff |}]; () @@ -31,6 +33,7 @@ let%expect_test _ = Util.print_fun_decl (Util.compile_and_parse prog) None; [%expect {| + Warning: integer overflow: integer 0xffffffff (4294967295) truncated to 0xffffffff (-1); the generated code might be incorrect. function caml_call2(f, a0, a1){ return (f.l >= 0 ? f.l : f.l = f.length) == 2 ? f(a0, a1)