2 ==================================================================
3 --- t/generate.t (revision 24729)
4 +++ t/generate.t (local)
12 plan skip_all => "B::Generate required" unless eval { require B::Generate };
17 - B::SVOP->new("const", 0, 42);
19 + return B::SVOP->new("const", 0, 42);
23 - my $meth = ( $_[0]->kids )[-1]->sv->object_2svref;
27 +use Devel::BeginLift qw(foo);
29 -use Devel::BeginLift qw(foo gorch);
33 is( bar(), 49, "optree injected" );
36 -is(blah(), 42, "optree injected" );;
45 -sub oink { gorch $obj->meth; }
47 -is( oink(), 42, "modify method call");
49 -my @args = ( 1 .. 3 );
50 -sub ploink { gorch $obj->meth(1, @args); }
51 -is( ploink(), 42, "modify method call with args");