summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2015-03-02 17:09:58 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2015-03-02 17:09:58 +0000
commitcdd0774e59b4bd58bbabe25c1b3580b66fac44c6 (patch)
treec9a573da4012f16e90c51f5f8949dbc0433d48a5 /testdata
parent6b33cd6e7980da3bd28959392bcdc13316df4fe0 (diff)
downloadpcre-cdd0774e59b4bd58bbabe25c1b3580b66fac44c6.tar.gz
Fix bad compilation for patterns like /((?+1)(\1))/ with forward reference
subroutine and recursive back reference within the same group. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1529 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput112
-rw-r--r--testdata/testinput22
-rw-r--r--testdata/testoutput11-1615
-rw-r--r--testdata/testoutput11-3215
-rw-r--r--testdata/testoutput11-815
-rw-r--r--testdata/testoutput215
6 files changed, 64 insertions, 0 deletions
diff --git a/testdata/testinput11 b/testdata/testinput11
index 7e8e542..65a4b03 100644
--- a/testdata/testinput11
+++ b/testdata/testinput11
@@ -134,4 +134,6 @@ is required for these tests. --/
/(((a\2)|(a*)\g<-1>))*a?/B
+/((?+1)(\1))/B
+
/-- End of testinput11 --/
diff --git a/testdata/testinput2 b/testdata/testinput2
index 0686c32..a629649 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -4128,4 +4128,6 @@ backtracking verbs. --/
"((?2){0,1999}())?"
+/((?+1)(\1))/BZ
+
/-- End of testinput2 --/
diff --git a/testdata/testoutput11-16 b/testdata/testoutput11-16
index 294da12..422f2ad 100644
--- a/testdata/testoutput11-16
+++ b/testdata/testoutput11-16
@@ -733,4 +733,19 @@ Memory allocation (code space): 14
41 End
------------------------------------------------------------------
+/((?+1)(\1))/B
+------------------------------------------------------------------
+ 0 20 Bra
+ 2 16 Once
+ 4 12 CBra 1
+ 7 9 Recurse
+ 9 5 CBra 2
+ 12 \1
+ 14 5 Ket
+ 16 12 Ket
+ 18 16 Ket
+ 20 20 Ket
+ 22 End
+------------------------------------------------------------------
+
/-- End of testinput11 --/
diff --git a/testdata/testoutput11-32 b/testdata/testoutput11-32
index 5e082e8..d953ec8 100644
--- a/testdata/testoutput11-32
+++ b/testdata/testoutput11-32
@@ -733,4 +733,19 @@ Memory allocation (code space): 28
41 End
------------------------------------------------------------------
+/((?+1)(\1))/B
+------------------------------------------------------------------
+ 0 20 Bra
+ 2 16 Once
+ 4 12 CBra 1
+ 7 9 Recurse
+ 9 5 CBra 2
+ 12 \1
+ 14 5 Ket
+ 16 12 Ket
+ 18 16 Ket
+ 20 20 Ket
+ 22 End
+------------------------------------------------------------------
+
/-- End of testinput11 --/
diff --git a/testdata/testoutput11-8 b/testdata/testoutput11-8
index 6957f15..6ec18ec 100644
--- a/testdata/testoutput11-8
+++ b/testdata/testoutput11-8
@@ -733,4 +733,19 @@ Memory allocation (code space): 10
60 End
------------------------------------------------------------------
+/((?+1)(\1))/B
+------------------------------------------------------------------
+ 0 31 Bra
+ 3 25 Once
+ 6 19 CBra 1
+ 11 14 Recurse
+ 14 8 CBra 2
+ 19 \1
+ 22 8 Ket
+ 25 19 Ket
+ 28 25 Ket
+ 31 31 Ket
+ 34 End
+------------------------------------------------------------------
+
/-- End of testinput11 --/
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index c574629..85eebee 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -14322,4 +14322,19 @@ Matched, but too many substrings
"((?2){0,1999}())?"
+/((?+1)(\1))/BZ
+------------------------------------------------------------------
+ Bra
+ Once
+ CBra 1
+ Recurse
+ CBra 2
+ \1
+ Ket
+ Ket
+ Ket
+ Ket
+ End
+------------------------------------------------------------------
+
/-- End of testinput2 --/