The bug report
Jarkko Hietaniemi [Fri, 14 Jul 2000 20:35:05 +0000 (20:35 +0000)]
[ID 19991110.002] minimal matching discrepancy found by pcre author
seems to have been fixed (though differently from what was suggested
in the report) in 5.6.0.  Add tests to keep the bug from reappearing.

p4raw-id: //depot/perl@6408

t/op/re_tests

index b3137c7..1e95a35 100644 (file)
@@ -758,3 +758,5 @@ tt+$        xxxtt   y       -       -
 ^([^,]*,){2}c  a,b,c   y       $1      b,
 (?i)           y       -       -
 '(?!\A)x'm     a\nxb\n y       -       -
+^(a(b)?)+$     aba     y       -$1-$2- -a--
+^(aa(bb)?)+$   aabbaa  y       -$1-$2- -aa--