Debian Codegraph @

test/instrument/control/newtype.t

raw
1 Pseudo-entry point of newtype is not instrumented.
2
3 $ bash ../test.sh <<'EOF'
4 > let _ = fun (type _t) -> ()
5 > EOF
6 let _ = fun (type _t) -> ()
7
8
9 Recursive instrumentation of subexpression.
10
11 $ bash ../test.sh <<'EOF'
12 > let _ = fun (type _t) -> fun x -> x
13 > EOF
14 let _ =
15 fun (type _t) x ->
16 ___bisect_visit___ 0;
17 x
18
19
20 Subexpression in tail position iff whole expression is in tail position.
21
22 $ bash ../test.sh <<'EOF'
23 > let _ =
24 > fun (type _t) -> print_endline "foo"
25 > let _ = fun () ->
26 > fun (type _t) -> print_endline "foo"
27 > EOF
28 let _ = fun (type _t) -> ___bisect_post_visit___ 0 (print_endline "foo")
29
30 let _ =
31 fun () ->
32 ___bisect_visit___ 1;
33 fun (type _t) -> print_endline "foo"