rmaprath updated this revision to Diff 71349. rmaprath added a comment. (Added more context)
https://reviews.llvm.org/D24562 Files: test/std/re/re.alg/re.alg.search/grep.pass.cpp Index: test/std/re/re.alg/re.alg.search/grep.pass.cpp =================================================================== --- test/std/re/re.alg/re.alg.search/grep.pass.cpp +++ 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> @@ -23,6 +22,7 @@ #include "test_macros.h" #include "test_iterators.h" +#ifndef TEST_HAS_NO_EXCEPTIONS extern "C" void LLVMFuzzerTestOneInput(const char *data) { size_t size = strlen(data); @@ -47,6 +47,7 @@ LLVMFuzzerTestOneInput(R"XX(Õ)_%()()((\8'_%()_%()_%()_%(()_%()_%()_%(.t;)()¥f()_%()(.)_%;)()!¥f(((()()XX"); #endif } +#endif int main() { @@ -82,5 +83,7 @@ assert(m.position(0) == 0); assert(m.str(0) == ""); } +#ifndef TEST_HAS_NO_EXCEPTIONS fuzz_tests(); +#endif }
Index: test/std/re/re.alg/re.alg.search/grep.pass.cpp =================================================================== --- test/std/re/re.alg/re.alg.search/grep.pass.cpp +++ 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> @@ -23,6 +22,7 @@ #include "test_macros.h" #include "test_iterators.h" +#ifndef TEST_HAS_NO_EXCEPTIONS extern "C" void LLVMFuzzerTestOneInput(const char *data) { size_t size = strlen(data); @@ -47,6 +47,7 @@ LLVMFuzzerTestOneInput(R"XX(Õ)_%()()((\8'_%()_%()_%()_%(()_%()_%()_%(.t;)()¥f()_%()(.)_%;)()!¥f(((()()XX"); #endif } +#endif int main() { @@ -82,5 +83,7 @@ assert(m.position(0) == 0); assert(m.str(0) == ""); } +#ifndef TEST_HAS_NO_EXCEPTIONS fuzz_tests(); +#endif }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits