Skip to content

Commit bdab106

Browse files
authored
flambda-backend: Only check ocamlobjinfo output when runtime5 is enabled (ocaml-flambda#2761)
Fixes a test failure that originated with PR ocaml-flambda#2737.
1 parent d1c090c commit bdab106

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

testsuite/tests/tool-ocamlobjinfo/question.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
program = "-no-code question.cmx";
1616
ocamlobjinfo;
1717
18+
runtime5;
1819
check-program-output;
1920
}{
2021
program = "question.cmx";

testsuite/tests/tool-ocamlobjinfo/question.reference

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,27 @@ Original unit: Question
3838
Typing env:
3939
((defined_symbols_without_equations ())
4040
(code_age_relation
41-
{(camlQuestion__answer_0_1_code camlQuestion__answer_0_0_code)})
41+
{(camlQuestion.answer_0_1_code camlQuestion.answer_0_0_code)})
4242
(type_equations
4343
{(Question.camlQuestion
4444
(Val
4545
(Variant
4646
(blocks
4747
((alloc_mode Heap) (known
48-
{(tag_0 => (Known 1), ((Val (= Question.camlQuestion__answer_1))))})
48+
{(tag_0 => (Known 1), ((Val (= Question.camlQuestion.answer_1))))})
4949
(other Bottom))) (tagged_imms (Naked_immediate ⊥)))))
50-
(Question.camlQuestion__answer_1
50+
(Question.camlQuestion.answer_1
5151
(Val
5252
((alloc_mode Heap) (known
5353
{((answer/0 ∷ 𝕍)
5454
=> (Known ((closures { (answer/0 ∷ 𝕍) }) (value_slots { }))),
5555
((function_types
5656
{((answer/0 ∷ 𝕍)
57-
(Ok (function_type (code_id camlQuestion__answer_0_1_code)
57+
(Ok (function_type (code_id camlQuestion.answer_0_1_code)
5858
(rec_info (Rec_info 0)))))})
5959
(closure_types
6060
((function_slot_components_by_index
61-
{((answer/0 ∷ 𝕍) (Val (= Question.camlQuestion__answer_1)))})))
61+
{((answer/0 ∷ 𝕍) (Val (= Question.camlQuestion.answer_1)))})))
6262
(value_slot_types ((value_slot_components_by_index {})))))})
6363
(other Bottom))))})
6464
(aliases

0 commit comments

Comments
 (0)