summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/re/re_tests8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/re/re_tests b/t/re/re_tests
index e961fcae17..2afc639313 100644
--- a/t/re/re_tests
+++ b/t/re/re_tests
@@ -2126,6 +2126,14 @@ AB\s+\x{100} AB \x{100}X y - -
((?|(?<a>a)(?-1)|(?<b>b)(?-1)|(?<c>c)(?-1))) aa y $1 aa # GH 20653
((?|(?<a>a)(?-1)|(?<b>b)(?-1)|(?<c>c)(?-1))) bb y $1 bb # GH 20653
((?|(?<a>a)(?-1)|(?<b>b)(?-1)|(?<c>c)(?-1))) cc y $1 cc # GH 20653
+(?|(a)|(b)) b y $+ b # GH 20912
+(?|(a)(?{$::plus_got=$+})|(b)(?{$::plus_got=$+})) b y $::plus_got b # GH 20912
+(?|(a)|(b)) b y $^N b # GH 20912
+(?|(a)(?{$::caret_n_got=$^N})|(b)(?{$::caret_n_got=$^N})) b y $::caret_n_got b # GH 20912
+(?|(a)|(b)) a y $+ a # GH 20912
+(?|(a)(?{$::plus_got=$+})|(b)(?{$::plus_got=$+})) a y $::plus_got a # GH 20912
+(?|(a)|(b)) a y $^N a # GH 20912
+(?|(a)(?{$::caret_n_got=$^N})|(b)(?{$::caret_n_got=$^N})) a y $::caret_n_got a # GH 20912
# Keep these lines at the end of the file
# pat string y/n/etc expr expected-expr skip-reason comment
# vim: softtabstop=0 noexpandtab