diff options
Diffstat (limited to 'test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp')
-rw-r--r-- | test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp b/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp index 9455527412bb..4da4d957a88a 100644 --- a/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp +++ b/test/std/re/re.regex/re.regex.construct/bad_escape.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// XFAIL: libcpp-no-exceptions // <regex> // template <class charT, class traits = regex_traits<charT>> class basic_regex; @@ -22,7 +23,7 @@ static bool error_escape_thrown(const char *pat) bool result = false; try { std::regex re(pat); - } catch (std::regex_error &ex) { + } catch (const std::regex_error &ex) { result = (ex.code() == std::regex_constants::error_escape); } return result; |