summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-02-25 20:48:13 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-02-25 20:48:13 +0000
commitd6b6943a97c6558b9dac96a87ed59af4004a298e (patch)
tree3645966f385902fc37bd80e1b37eb14d54d0092c /t
parentf70ca6c83cb72c40e99a32a277d84b67546a860f (diff)
parentb46bc2b69fd0825253e7e513bb1c568567aa6ab0 (diff)
downloadperl-d6b6943a97c6558b9dac96a87ed59af4004a298e.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@5257
Diffstat (limited to 't')
-rwxr-xr-xt/cmd/while.t19
1 files changed, 18 insertions, 1 deletions
diff --git a/t/cmd/while.t b/t/cmd/while.t
index 46bbdea15a..ecc15eda53 100755
--- a/t/cmd/while.t
+++ b/t/cmd/while.t
@@ -1,6 +1,6 @@
#!./perl
-print "1..19\n";
+print "1..22\n";
open (tmp,'>Cmd_while.tmp') || die "Can't create Cmd_while.tmp.";
print tmp "tvi925\n";
@@ -160,3 +160,20 @@ print "ok $i\n";
print "ok $l\n"
}
}
+
+$i = 20;
+{
+ while (1) {
+ my $x;
+ print $x if defined $x;
+ $x = "not ";
+ print "ok $i\n"; ++$i;
+ if ($i == 21) {
+ next;
+ }
+ last;
+ }
+ continue {
+ print "ok $i\n"; ++$i;
+ }
+}