summaryrefslogtreecommitdiff
path: root/testdata/testinput1
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-08-03 13:18:49 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-08-03 13:18:49 +0000
commit927015e49e35951f14d4b92f35f72c934fe3da0a (patch)
treed714d5a30bedad715d8d7c975576cdde4af7ebaa /testdata/testinput1
parent209880186ae777d2404560fff04d4e3c36b55ffe (diff)
downloadpcre2-927015e49e35951f14d4b92f35f72c934fe3da0a.tar.gz
Fix incorrect minimum matching length when pattern contains (?| groups.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@332 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata/testinput1')
-rw-r--r--testdata/testinput122
1 files changed, 22 insertions, 0 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1
index 884faf1..f5b801c 100644
--- a/testdata/testinput1
+++ b/testdata/testinput1
@@ -5727,4 +5727,26 @@ name)/mark
"(?|(\k'Pm')|(?'Pm'))"
abcd
+/(?|(aaa)|(b))\g{1}/
+ aaaaaa
+ bb
+
+/(?|(aaa)|(b))(?1)/
+ aaaaaa
+ baaa
+ ** Failers
+ bb
+
+/(?|(aaa)|(b))/
+ xaaa
+ xbc
+
+/(?|(?'a'aaa)|(?'a'b))\k'a'/
+ aaaaaa
+ bb
+
+/(?|(?'a'aaa)|(?'a'b))(?'a'cccc)\k'a'/dupnames
+ aaaccccaaa
+ bccccb
+
# End of testinput1