From 95482ab52d9506e38ba7721cd9d8ececef1b7093 Mon Sep 17 00:00:00 2001 From: Hugo Heuzard Date: Mon, 30 Sep 2024 23:33:36 +0200 Subject: [PATCH] WIP --- compiler/tests-compiler/gh1051.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)