summaryrefslogtreecommitdiff
path: root/testsuite/tests/tool-debugger/module_named_main/main.ml
blob: 8c374be083a9049941489a4e4736fa3aca47b701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
(* TEST_BELOW
(* Blank lines added here to preserve locations. *)








*)

module Submodule = struct

  type t = unit

  let value = ()

  let pp (fmt : Format.formatter) (_ : t) : unit =
    Format.fprintf fmt "DEBUG: Aux.Submodule.pp"

end

let debug () =
  let value = Submodule.value in
  ignore value

;;

debug ();

(* TEST
 flags += " -g ";
 ocamldebug_script = "${test_source_directory}/input_script";
 debugger;
 shared-libraries;
 setup-ocamlc.byte-build-env;
 ocamlc.byte;
 check-ocamlc.byte-output;
 ocamldebug;
 check-program-output;
*)