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." (should (looking-at "x*\\(=\\|:\\)*")) (should (looking-at "x*=*?")))) +(ert-deftest regex-tests-mutual-exclusive-inf-rec () + ;; Regression test for bug#65726, where this crashed Emacs. + (should (equal (string-match "a*\\(?:c\\|b*\\)*" "a") 0))) + ;;; regex-emacs-tests.el ends here