4 use Test::More tests => 3;
6 use XS::APItest qw(establish_cleanup);
10 # unwinding on local return from sub
14 establish_cleanup sub { push @events, "bb0" };
21 push @events, [ "cc1", aa() ];
28 push @events, [ "dd1", cc() ];
40 # unwinding on local return from format
42 sub ff { push @events, "ff0" }
46 ((push @events, "ee0"), (establish_cleanup \&ff), (push @events, "ee1"), "ee2")
57 open EE, ">", \(my $ee);
59 push @events, [ "hh1", gg() ];
76 establish_cleanup sub { push @events, "qq0" };
82 [ "pp5", $value, $@ ];
87 push @events, [ "rr1", pp() ];
93 [ "rr1", [ "pp5", undef, "pp2\n" ] ],