From 438e46d4bd490e38cd757b0fc26b6ed46d27e1be Mon Sep 17 00:00:00 2001
From: ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>
Date: Thu, 13 Oct 2016 16:08:08 +0000
Subject: [PATCH] Add test for bug already fixed by the refactoring.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@564 6239d852-aaf2-0410-a92c-79f79f948069
Petr Písař: Ported to 10.21.
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
testdata/testinput2 | 4 ++++
testdata/testoutput2 | 28 ++++++++++++++++++++++++++++
2 files changed, 32 insertions(+)
diff --git a/testdata/testinput2 b/testdata/testinput2
index 67c40ba..3883205 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -4807,4 +4807,8 @@ a)"xI
\= Expect no match
abc
+/(?<RA>abc)(?(R)xyz)/B
+
+/(?<R>abc)(?(R)xyz)/B
+
# End of testinput2
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index 32aa066..28687fd 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -15176,4 +15176,32 @@ Failed: error 122 at offset 10: unmatched closing parenthesis
0 ^ 0
No match
+/(?<RA>abc)(?(R)xyz)/B
+------------------------------------------------------------------
+ Bra
+ CBra 1
+ abc
+ Ket
+ Cond
+ Cond recurse any
+ xyz
+ Ket
+ Ket
+ End
+------------------------------------------------------------------
+
+/(?<R>abc)(?(R)xyz)/B
+------------------------------------------------------------------
+ Bra
+ CBra 1
+ abc
+ Ket
+ Cond
+ 1 Cond ref
+ xyz
+ Ket
+ Ket
+ End
+------------------------------------------------------------------
+
# End of testinput2
--
2.7.4