diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-07-13 21:37:21 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-07-13 21:37:21 +0000 |
commit | 35c6393c7abe46176380cd5f437568a98c8f4995 (patch) | |
tree | 1dfd41007e64fa0467b134b99d4ff017ebf6223f /t/op/write.t | |
parent | e8e72d41921b8365de491c29d17ce128c04ed94d (diff) | |
download | perl-35c6393c7abe46176380cd5f437568a98c8f4995.tar.gz |
Make format items @* and ^* work with references (safely). Note no-one
said anything about sanely.
p4raw-id: //depot/perl@34140
Diffstat (limited to 't/op/write.t')
-rwxr-xr-x | t/op/write.t | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/t/op/write.t b/t/op/write.t index 96e99e4d66..429936c97b 100755 --- a/t/op/write.t +++ b/t/op/write.t @@ -61,7 +61,7 @@ for my $tref ( @NumTests ){ my $bas_tests = 20; # number of tests in section 3 -my $bug_tests = 4 + 3 * 3 * 5 * 2 * 3; +my $bug_tests = 4 + 3 * 3 * 5 * 2 * 3 + 2; # number of tests in section 4 my $hmb_tests = 35; @@ -569,6 +569,15 @@ for my $tref ( @NumTests ){ } } +{ + # This will fail an assertion in 5.10.0 built with -DDEBUGGING (because + # pp_formline attempts to set SvCUR() on an SVt_RV). I suspect that it will + # be doing something similarly out of bounds on everything from 5.000 + my $ref = []; + is swrite('>^*<', $ref), ">$ref<"; + is swrite('>@*<', $ref), ">$ref<"; +} + format EMPTY = . |