5 # test various operations on @_
13 print "# got [@$y], expected [y]\nnot " unless "@$y" eq "y";
16 print "# got [@$x], expected [x]\nnot " unless "@$x" eq "x";
20 sub new2 { splice @_, 0, 0, "a", "b", "c"; return \@_ }
25 print "# got [@$x], expected [a b c x]\nnot " unless "@$x" eq "a b c x";
28 print "# got [@$y], expected [a b c y]\nnot " unless "@$y" eq "a b c y";
32 sub new3 { goto &new1 }
37 print "# got [@$y], expected [y]\nnot " unless "@$y" eq "y";
40 print "# got [@$x], expected [x]\nnot " unless "@$x" eq "x";
44 sub new4 { goto &new2 }
49 print "# got [@$x], expected [a b c x]\nnot " unless "@$x" eq "a b c x";
52 print "# got [@$y], expected [a b c y]\nnot " unless "@$y" eq "a b c y";
56 # see if POPSUB gets to see the right pad across a dounwind() with
69 eval { method('foo', 'bar'); };