for a map/grep block containing a while(1).
(Bug reported by Pixel.)
p4raw-id: //depot/perl@22667
OP* k;
o = ck_sort(o);
kid = cLISTOPo->op_first->op_sibling;
- for (k = cLISTOPo->op_first->op_sibling->op_next; k; k = k->op_next) {
+ for (k = cUNOPx(kid)->op_first; k; k = k->op_next) {
kid = k;
}
kid->op_next = (OP*)gwop;
# grep() and map() tests
#
-print "1..37\n";
+print "1..38\n";
$test = 1;
undef $gimme; map { gimme } @list; ok($gimme, 'list'); $test++;
}
+{
+ # This shouldn't loop indefinitively.
+ my @empty = map { while (1) {} } ();
+ ok("@empty", '');
+}