aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-09-05 15:39:29 +0200
committerMattias EngdegÄrd2023-09-05 15:39:29 +0200
commit8a9e653cc82e85c2d3505d9f5511ed0484ea4ff1 (patch)
tree0d59f996b7050afa1418a2ad9295d50dff73535f /test/src
parent6fad73d7cc53116962d8b0c07b13b8e7d5bc6f65 (diff)
downloademacs-8a9e653cc82e85c2d3505d9f5511ed0484ea4ff1.tar.gz
emacs-8a9e653cc82e85c2d3505d9f5511ed0484ea4ff1.zip
; Add regression test for bug#65726
* test/src/regex-emacs-tests.el (regex-tests-mutual-exclusive-inf-rec): New test.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/regex-emacs-tests.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/src/regex-emacs-tests.el b/test/src/regex-emacs-tests.el
index c8f161c9b24..c074100e17f 100644
--- a/test/src/regex-emacs-tests.el
+++ b/test/src/regex-emacs-tests.el
@@ -883,4 +883,8 @@ This evaluates the TESTS test cases from glibc."
883 (should (looking-at "x*\\(=\\|:\\)*")) 883 (should (looking-at "x*\\(=\\|:\\)*"))
884 (should (looking-at "x*=*?")))) 884 (should (looking-at "x*=*?"))))
885 885
886(ert-deftest regex-tests-mutual-exclusive-inf-rec ()
887 ;; Regression test for bug#65726, where this crashed Emacs.
888 (should (equal (string-match "a*\\(?:c\\|b*\\)*" "a") 0)))
889
886;;; regex-emacs-tests.el ends here 890;;; regex-emacs-tests.el ends here