File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
ocaml/testsuite/tests/hidden_includes Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change
1
+ File "libc/c2.ml", line 1, characters 12-15:
2
+ 1 | let x = B.f B.x
3
+ ^^^
4
+ Error: Function arguments and returns must be representable.
5
+ The layout of A.t is any, because
6
+ the .cmi file for A.t is missing.
7
+ But the layout of A.t must be representable, because
8
+ we must know concretely how to pass a function argument.
9
+ No .cmi file found containing A.t.
10
+ Hint: Adding "a" to your dependencies might help.
Original file line number Diff line number Diff line change 1
1
(* TEST
2
- reason = "broken due to layout error";
3
- skip;
4
2
(* This tests the -H flag.
5
3
6
4
The basic structure is that libc depends on libb, which depends on liba. We
@@ -37,11 +35,16 @@ flags = "-I liba -I libb -nocwd";
37
35
module = "libb/b.ml";
38
36
ocamlc.byte;
39
37
{
40
- (* Test hiding A completely *)
38
+ (* Test hiding A completely. You can't do much with types from it because
39
+ their layouts are unknown. *)
41
40
flags = "-I libb -nocwd";
42
41
module = "libc/c2.ml";
43
42
setup-ocamlc.byte-build-env;
43
+ ocamlc_byte_exit_status = "2";
44
44
ocamlc.byte;
45
+ compiler_reference =
46
+ "${test_source_directory}/missing_cmi_layout.ocamlc.reference";
47
+ check-ocamlc.byte-output;
45
48
}
46
49
{
47
50
(* Test hiding A completely, but using it *)
You can’t perform that action at this time.
0 commit comments