summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp')
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp b/libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp
index 82f8e3b7ee8..d8cc1f0f616 100644
--- a/libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp
@@ -18,12 +18,11 @@
// regex_constants::match_flag_type =
// regex_constants::match_default) = delete;
-#if __cplusplus <= 201402L
-#error
-#else
+// XFAIL: C++98, c++03, c++11
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
@@ -33,4 +32,3 @@ int main()
std::regex_match(std::string("abcde"), m, re);
}
}
-#endif
OpenPOWER on IntegriCloud