summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-08-28 05:46:17 +0000
committerEric Fiselier <eric@efcs.ca>2015-08-28 05:46:17 +0000
commit1e051aab0cc12bb4a4c1be8d1b1b70537fd0f012 (patch)
treecccde78e8ef13effb76aaa162ff1901771f7cd1d /libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
parentbc3af7b031b5cb4faea54fbdf7cab2e0dd4d01e1 (diff)
downloadbcm5719-llvm-1e051aab0cc12bb4a4c1be8d1b1b70537fd0f012.tar.gz
bcm5719-llvm-1e051aab0cc12bb4a4c1be8d1b1b70537fd0f012.zip
Finally get the test suite passing in C++03!!
After months of work there are only 4 tests still failing in C++03. This patch fixes those tests. All of the libc++ builders should be green. llvm-svn: 246275
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.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