summaryrefslogtreecommitdiff
path: root/test/std/re/re.alg/re.alg.search/grep.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/re/re.alg/re.alg.search/grep.pass.cpp')
-rw-r--r--test/std/re/re.alg/re.alg.search/grep.pass.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/std/re/re.alg/re.alg.search/grep.pass.cpp b/test/std/re/re.alg/re.alg.search/grep.pass.cpp
index 136f9958c9b2..fa4e675c78f0 100644
--- a/test/std/re/re.alg/re.alg.search/grep.pass.cpp
+++ b/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,9 @@ extern "C" void LLVMFuzzerTestOneInput(const char *data)
}
catch (std::regex_error &) {}
}
+#else
+ ((void)data);
+#endif
}