File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
ocaml/testsuite/tests/lib-dynlink-native Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ Registering module Plugin2
7
7
2
8
8
6
9
9
1
10
+ Raised by primitive operation at Plugin2.foo in file "plugin2.ml", line 4, characters 38-64
11
+ Called from Plugin2.test_frametable in file "plugin2.ml", line 10, characters 2-72
12
+ Called from Plugin2 in file "plugin2.ml", line 19, characters 2-20
10
13
XXX
11
14
Loading plugin_thread.so
12
15
Registering module Plugin_thread
Original file line number Diff line number Diff line change 1
1
(* external ex: int -> int = "caml_ex"*)
2
2
3
+ let foo a1 a2 a3 a4 a5 a6 a7 a8 a9 =
4
+ Printexc. print_raw_backtrace stdout (Printexc. get_callstack 4 );
5
+ fun a10 a11 a12 a13 a14 a15 a16 a17 a18 -> ()
6
+
7
+ (* Ensure that the frametable is set up correctly so that a [caml_curry_18]
8
+ frame can be traversed *)
9
+ let [@ inline never] test_frametable () =
10
+ (Sys. opaque_identity foo) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ;
11
+ (* force non-tail call *)
12
+ Sys. opaque_identity ()
13
+
3
14
let () =
4
15
Api. reg_mod " Plugin2" ;
5
16
Api. add_cb (fun () -> print_endline " Callback from plugin2" );
6
17
(* let i = ex 3 in*)
7
18
List. iter (fun i -> Printf. printf " %i\n " i) Plugin. facts;
19
+ test_frametable () ;
8
20
Printf. printf " XXX\n "
You can’t perform that action at this time.
0 commit comments