summaryrefslogtreecommitdiff
path: root/testdata/testinput1
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2018-01-31 17:53:56 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2018-01-31 17:53:56 +0000
commitb70b8394e79360f92c87a169c1ba982a7e22d9d6 (patch)
tree080701ab90dbe375d9739c6cbf66ad60393add7c /testdata/testinput1
parente98f42ec8153d9020f2fcc347e11c65b181267a2 (diff)
downloadpcre2-b70b8394e79360f92c87a169c1ba982a7e22d9d6.tar.gz
Fix auto-possessification bug at the end of a capturing group that is called
recursively. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@912 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata/testinput1')
-rw-r--r--testdata/testinput130
1 files changed, 30 insertions, 0 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1
index 756b4af..9a9c5fd 100644
--- a/testdata/testinput1
+++ b/testdata/testinput1
@@ -6159,4 +6159,34 @@ ef) x/x,mark
/((?<=((*ACCEPT))X)\1?Y(*ACCEPT))\1/
XYYZ
+/(?(DEFINE)(?<optional_a>a?)X)^(?&optional_a)a$/
+ aa
+ a
+
+/^(a?)b(?1)a/
+ abaa
+ aba
+ baa
+ ba
+
+/^(a?)+b(?1)a/
+ abaa
+ aba
+ baa
+ ba
+
+/^(a?)++b(?1)a/
+ abaa
+ aba
+ baa
+ ba
+
+/^(a?)+b/
+ b
+ ab
+ aaab
+
+/(?=a+)a(a+)++b/
+ aab
+
# End of testinput1