about summary refs log tree commit diff
path: root/Test/V07pcre.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/V07pcre.ztst')
-rw-r--r--Test/V07pcre.ztst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst
index 39077564c..ad1770712 100644
--- a/Test/V07pcre.ztst
+++ b/Test/V07pcre.ztst
@@ -130,3 +130,10 @@
 0:pcre_match -b and pcre_match -n
 >78884; ZPCRE_OP: 25 30
 >90210; ZPCRE_OP: 31 36
+
+# Subshell because crash on failure
+  ( setopt re_match_pcre
+    [[ test.txt =~ '^(.*_)?(test)' ]]
+    echo $match[2] )
+0:regression for segmentation fault, workers/38307
+>test