6 plan skip_all => "B::Generate required" unless eval { require B::Generate };
7 plan skip_all => "B::Utils required" unless eval { require B::Utils };
12 B::SVOP->new("const", 0, 42);
16 my $meth = ( $_[0]->kids )[-1]->sv->object_2svref;
21 use Devel::BeginLift qw(foo gorch);
24 is( bar(), 49, "optree injected" );
27 is(blah(), 42, "optree injected" );;
36 sub oink { gorch $obj->meth; }
38 is( oink(), 42, "modify method call");
40 my @args = ( 1 .. 3 );
41 sub ploink { gorch $obj->meth(1, @args); }
42 is( ploink(), 42, "modify method call with args");