summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.alg
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re/re.alg')
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp4
1 files changed, 4 insertions, 0 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 fbeddd04e92..a26f81eab52 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
@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
#include "test_iterators.h"
extern "C" void LLVMFuzzerTestOneInput(const char *data)
@@ -40,7 +41,10 @@ extern "C" void LLVMFuzzerTestOneInput(const char *data)
void fuzz_tests() // patterns that the fuzzer has found
{
+// Raw string literals are a C++11
+#if TEST_STD_VER >= 11
LLVMFuzzerTestOneInput(R"XX(Õ)_%()()((\8'_%()_%()_%()_%(()_%()_%()_%(.t;)()¥f()_%()(.)_%;)()!¥f(((()()XX");
+#endif
}
int main()
OpenPOWER on IntegriCloud