summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp')
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
index 136f9958c9b..d6fc7696fca 100644
--- a/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
@@ -7,7 +7,6 @@
//
//===----------------------------------------------------------------------===//
-// XFAIL: libcpp-no-exceptions
// <regex>
// template <class BidirectionalIterator, class Allocator, class charT, class traits>
@@ -25,6 +24,7 @@
extern "C" void LLVMFuzzerTestOneInput(const char *data)
{
+#ifndef TEST_HAS_NO_EXCEPTIONS
size_t size = strlen(data);
if (size > 0)
{
@@ -37,6 +37,7 @@ extern "C" void LLVMFuzzerTestOneInput(const char *data)
}
catch (std::regex_error &) {}
}
+#endif
}
OpenPOWER on IntegriCloud