We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a49a5 commit 886b6b2Copy full SHA for 886b6b2
compiler/tests-wasm_of_ocaml/dune
@@ -1,8 +1,8 @@
1
(executables
2
- (names gh38 gh46)
+ (names gh38 gh46 gh107)
3
(modes js)
4
(js_of_ocaml
5
- (flags :standard --disable optcall)))
+ (flags :standard --disable optcall --no-inline)))
6
7
(rule
8
(target gh38.actual)
@@ -23,3 +23,13 @@
23
(with-outputs-to
24
%{target}
25
(run node %{dep:gh46.bc.js}))))
26
+
27
+(rule
28
+ (target gh107.actual)
29
+ (enabled_if
30
+ (= %{profile} wasm))
31
+ (alias runtest)
32
+ (action
33
+ (with-outputs-to
34
+ %{target}
35
+ (run node %{dep:gh107.bc.js}))))
compiler/tests-wasm_of_ocaml/gh107.ml
@@ -0,0 +1,11 @@
+[@@@warning "-69"]
+type t =
+ { x : float
+ ; y : float
+ }
+let () =
9
+ let f x = { x; y = 2. } in
10
+ let x = f 1. in
11
+ Format.eprintf "%f@." x.y
0 commit comments