summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-04-24 08:43:24 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-04-24 08:43:24 +0000
commit855383171f82b0033b4163a01d30ba375967a9d0 (patch)
treea22da01cd6f1a18ac0b25aef643b0b5f678f618a /t
parent32b22042d2a54453bc0d4b6b7f1d2123903a49be (diff)
downloadperl-855383171f82b0033b4163a01d30ba375967a9d0.tar.gz
arrange for next() to resume at the unstack op rather than the
loop conditional, so that scope cleanup happens correctly (from Stephen McCamant) p4raw-id: //depot/perl@5927
Diffstat (limited to 't')
-rwxr-xr-xt/op/misc.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/op/misc.t b/t/op/misc.t
index ac1a44fadb..1673b273d7 100755
--- a/t/op/misc.t
+++ b/t/op/misc.t
@@ -545,3 +545,9 @@ ucfirst - World
lcfirst - world
uc - WORLD
lc - world
+########
+sub f { my $a = 1; my $b = 2; my $c = 3; my $d = 4; next }
+my $x = "foo";
+{ f } continue { print $x, "\n" }
+EXPECT
+foo