Skip to content

Commit 0f13d8f

Browse files
committed
Add test for check for compiling .ml of parameter .mli
I've disabled the check on the output, since currently we get the wrong error message (and the one we get is confusing). This will be much easier to fix when PR ocaml-flambda#1764 is fixed to avoid unhelpful checks on `.mli` files that are loaded directly rather than as part of name resolution.
1 parent 9137b18 commit 0f13d8f

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
(* TEST
2+
3+
readonly_files = "bad_param_impl.mli bad_param_impl.reference"
4+
5+
* setup-ocamlc.byte-build-env
6+
** ocamlc.byte
7+
flags = "-as-parameter"
8+
module = "bad_param_impl.mli"
9+
*** ocamlc.byte
10+
flags = ""
11+
module = "bad_param_impl.ml"
12+
ocamlc_byte_exit_status = "2"
13+
compiler_output = "bad_param_impl.output"
14+
**** skip
15+
reason = "error currently broken"
16+
***** check-ocamlc.byte-output
17+
compiler_reference = "bad_param_impl.reference"
18+
*)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(* To be compiled with [-as-parameter] *)

ocaml/testsuite/tests/templates/basic/bad_param_impl.reference

Whitespace-only changes.

0 commit comments

Comments
 (0)