summaryrefslogtreecommitdiff
path: root/testsuite/tests/unwind/driver.ml
blob: 7df39daf0eaa856339b8512a2abded922118fe3e (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
(* TEST

script = "sh ${test_source_directory}/check-linker-version.sh"
readonly_files = "mylib.mli mylib.ml stack_walker.c"

* macos
** script
*** setup-ocamlopt.byte-build-env
**** ocamlopt.byte
flags = "-opaque"
module = "mylib.mli"
***** ocamlopt.byte
module = ""
flags = "-cclib -Wl,-keep_dwarf_unwind"
all_modules = "mylib.ml driver.ml stack_walker.c"
program = "${test_build_directory}/unwind_test"
****** run
output = "${test_build_directory}/program-output"
stdout = "${output}"
stderr = "${output}"
******* check-program-output
reference = "${test_source_directory}/unwind_test.reference"

*)

let () =
  Mylib.foo1 Mylib.bar 1 2 3 4 5 6 7 8 9 10;
  Mylib.foo2 Mylib.baz 1 2 3 4 5 6 7 8 9 10

(* https://github.com/ocaml-multicore/ocaml-multicore/issues/274 *)
let () =
  Mylib.foo1 Mylib.bob 1 2 3 4 5 6 7 8 9 10