summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-01-15 20:45:14 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-01-15 20:45:14 +0000
commitdb80722ab973cb702dbbd653128e10a109609401 (patch)
treec93ffdb2067db71a1e15915fb3207cca9abee9b8 /t
parent253ecd6d4a439a0600720c59c5e6516a269933d8 (diff)
downloadperl-db80722ab973cb702dbbd653128e10a109609401.tar.gz
Add a test case for bug [perl #19545]
p4raw-id: //depot/perl@18487
Diffstat (limited to 't')
-rwxr-xr-xt/op/do.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/op/do.t b/t/op/do.t
index a92a9183bf..b611d0d1db 100755
--- a/t/op/do.t
+++ b/t/op/do.t
@@ -31,7 +31,7 @@ sub ok {
return $ok;
}
-print "1..21\n";
+print "1..22\n";
# Test do &sub and proper @_ handling.
$_[0] = 0;
@@ -90,6 +90,10 @@ ok( !$@, "do on a non-existing file, second try" );
# 6 must be interpreted as a file name here
ok( (!defined do 6) && $!, "'do 6' : $!" );
+# [perl #19545]
+push @t, ($u = (do {} . "This should be pushed."));
+ok( $#t == 0, "empty do result value" );
+
END {
1 while unlink("$$.16", "$$.17", "$$.18");
}