Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed May 23, 2024
1 parent 3e586e3 commit 9eb33a6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions compiler/tests-wasm_of_ocaml/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(executables
(names gh38)
(modes js)
(js_of_ocaml (flags :standard --disable optcall)))

(rule
(target gh38.actual)
(enabled_if (= %{profile} wasm))
(alias runtest)
(action
(with-outputs-to
%{target}
(run node %{dep:gh38.bc.js}))))
3 changes: 3 additions & 0 deletions compiler/tests-wasm_of_ocaml/gh38.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let f () () = ()

let (_ : _ -> _) = f ()

0 comments on commit 9eb33a6

Please sign in to comment.