summaryrefslogtreecommitdiff
path: root/t/op/gv.t
diff options
context:
space:
mode:
authorAbhijit Menon-Sen <ams@wiw.org>2002-09-17 18:09:32 +0000
committerAbhijit Menon-Sen <ams@wiw.org>2002-09-17 18:09:32 +0000
commit2b5e58c4e3614e505a895c6ac7f709db82f8f7f4 (patch)
tree9d0f0b7d730bb3e4d3de321fc1dd299e8e2acbe9 /t/op/gv.t
parentdc33ebcf89adb9fd4e96220dc56a16ce8d9115d2 (diff)
downloadperl-2b5e58c4e3614e505a895c6ac7f709db82f8f7f4.tar.gz
Fix #17375 (rcatline didn't work on a formerly-defined undef) by
checking for SvOK in do_readline(). p4raw-id: //depot/perl@17910
Diffstat (limited to 't/op/gv.t')
-rwxr-xr-xt/op/gv.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/op/gv.t b/t/op/gv.t
index 9ce11354a3..9b347d3e20 100755
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -11,7 +11,7 @@ BEGIN {
use warnings;
-print "1..47\n";
+print "1..48\n";
# type coersion on assignment
$foo = 'foo';
@@ -208,5 +208,15 @@ print $j[0] == 1 ? "ok 43\n" : "not ok 43\n";
print $w =~ /Prototype mismatch/ ? "ok 47\n" : "not ok 47\n# $w";
}
+{
+ # [17375] rcatline to formerly-defined undef was broken. Fixed in
+ # do_readline by checking SvOK. AMS, 20020918
+ my $x = "not ";
+ $x = undef;
+ $x .= <DATA>;
+ print $x;
+}
+
__END__
ok 44
+ok 48