From: Rafael Garcia-Suarez Date: Tue, 14 Dec 2004 07:28:57 +0000 (+0000) Subject: Test patch for already-solved bug #33003, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=80ff368fad8537e654aefda89bf8f6f297582b6e;p=p5sagit%2Fp5-mst-13.2.git Test patch for already-solved bug #33003, by Michael G Schwern. p4raw-id: //depot/perl@23645 --- diff --git a/t/op/bop.t b/t/op/bop.t index 1003686..5220f0a 100755 --- a/t/op/bop.t +++ b/t/op/bop.t @@ -14,7 +14,7 @@ BEGIN { # If you find tests are failing, please try adding names to tests to track # down where the failure is, and supply your new names as a patch. # (Just-in-time test naming) -plan tests => 145; +plan tests => 146; # numerics ok ((0xdead & 0xbeef) == 0x9ead); @@ -321,3 +321,7 @@ $a = "\0\x{100}"; chop($a); ok(utf8::is_utf8($a)); # make sure UTF8 flag is still there $a = ~$a; is($a, "\xFF", "~ works with utf-8"); + +# [rt.perl.org 33003] +# This would cause a segfault +is( runperl(prog => '$#a>>=1; print 1'), 1 );