Skip to content

Commit fdbc151

Browse files
committed
Test: miscompilation of float array creation
1 parent 102f8dd commit fdbc151

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

compiler/tests-wasm_of_ocaml/dune

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(executables
2-
(names gh38 gh46 gh107)
2+
(names gh38 gh46 gh107 gh112)
33
(modes js)
44
(js_of_ocaml
55
(flags :standard --disable optcall --no-inline)))
@@ -33,3 +33,13 @@
3333
(with-outputs-to
3434
%{target}
3535
(run node %{dep:gh107.bc.js}))))
36+
37+
(rule
38+
(target gh112.actual)
39+
(enabled_if
40+
(= %{profile} wasm))
41+
(alias runtest)
42+
(action
43+
(with-outputs-to
44+
%{target}
45+
(run node %{dep:gh112.bc.js}))))
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
let construct x = [| x |]
2+
3+
let project (x : float array) = x.(0)
4+
5+
let _ = project (construct 4.0)

0 commit comments

Comments
 (0)