p4raw-link: @10404 on //depot/maint-5.6/perl:
62bda1a5f4287c07607d002738961da56cf9f92c
p4raw-id: //depot/perl@10405
p4raw-integrated: from //depot/maint-5.6/perl@10403 'merge in'
t/op/eval.t (@5902..)
$x++;
do_eval1('eval q[print "ok $x\n"]');
$x++;
-do_eval1('sub { eval q[print "ok $x\n"] }->()');
+do_eval1('sub { print "# $x\n"; eval q[print "ok $x\n"] }->()');
$x++;
# calls from within eval'' should clone outer lexicals
$x++;
do_eval2('eval q[print "ok $x\n"]');
$x++;
-do_eval2('sub { eval q[print "ok $x\n"] }->()');
+do_eval2('sub { print "# $x\n"; eval q[print "ok $x\n"] }->()');
$x++;
EOT