summaryrefslogtreecommitdiff
path: root/testdata/testinput14
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-08-09 16:29:35 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-08-09 16:29:35 +0000
commitc5489cdada19f23cb3c25c9a4771447a84dbb556 (patch)
treef8bda69987e9554194faaa8992daac40e98292b1 /testdata/testinput14
parent1e0c21fe7dc6124a8f574c44c0916abc1adc3ddc (diff)
downloadpcre2-c5489cdada19f23cb3c25c9a4771447a84dbb556.tar.gz
Re-write recursion handling to fix another compiler bug and make it all less
error-prone. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@338 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata/testinput14')
-rw-r--r--testdata/testinput1443
1 files changed, 43 insertions, 0 deletions
diff --git a/testdata/testinput14 b/testdata/testinput14
index 69ca2b6..b4fc203 100644
--- a/testdata/testinput14
+++ b/testdata/testinput14
@@ -108,5 +108,48 @@
/abc(?=abcde)(?=ab)/allusedtext
abcabcdefg
+
+# These tests provoke recursion loops, which give a different error message
+# when JIT is used.
+
+/(?R)/I
+ abcd
+
+/(a|(?R))/I
+ abcd
+ defg
+
+/(ab|(bc|(de|(?R))))/I
+ abcd
+ fghi
+
+/(ab|(bc|(de|(?1))))/I
+ abcd
+ fghi
+
+/x(ab|(bc|(de|(?1)x)x)x)/I
+ xab123
+ xfghi
+
+/(?!\w)(?R)/
+ abcd
+ =abc
+
+/(?=\w)(?R)/
+ =abc
+ abcd
+
+/(?<!\w)(?R)/
+ abcd
+
+/(?<=\w)(?R)/
+ abcd
+
+/(a+|(?R)b)/
+ aaa
+ bbb
+
+/[^\xff]((?1))/BI
+ abcd
# End of testinput14