8 plan skip_all => "B::Generate required" unless eval { require B::Generate };
13 B::SVOP->new("const", 0, 42);
17 my $meth = ( $_[0]->kids )[-1]->sv->object_2svref;
22 use Devel::BeginLift qw(foo gorch);
25 is( bar(), 49, "optree injected" );
28 is(blah(), 42, "optree injected" );;
37 sub oink { gorch $obj->meth; }
39 is( oink(), 42, "modify method call");
41 my @args = ( 1 .. 3 );
42 sub ploink { gorch $obj->meth(1, @args); }
43 is( ploink(), 42, "modify method call with args");