From: Jarkko Hietaniemi Date: Sun, 2 Feb 2003 15:26:10 +0000 (+0000) Subject: The [perl #7471] seems to have been fixed; add its test. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fbeb8e69a2839da21922b2334a124af719d18406;p=p5sagit%2Fp5-mst-13.2.git The [perl #7471] seems to have been fixed; add its test. p4raw-id: //depot/perl@18631 --- diff --git a/t/op/pat.t b/t/op/pat.t index 7386f26..b4349b6 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -6,7 +6,7 @@ $| = 1; -print "1..977\n"; +print "1..979\n"; BEGIN { chdir 't' if -d 't'; @@ -3067,5 +3067,12 @@ ok("\x{100}" =~ /(\x{100}){1}/, "[perl #15397]"); ok("\x{100}\x{100}" =~ /(\x{100}){2}/, "[perl #15397]"); ok("\x{100}\x{100}" =~ /(\x{100})(\x{100})/, "[perl #15397]"); -# last test 977 +$x = "CD"; +$x =~ /(AB)*?CD/; +ok(!defined $1, "[perl #7471]"); +$x = "CD"; +$x =~ /(AB)*CD/; +ok(!defined $1, "[perl #7471]"); + +# last test 979