summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.alg
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-04-26 19:29:35 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-04-26 19:29:35 +0000
commit8dc9dcaeaccd3be047740b1f19c4beee33b0f44e (patch)
tree4580cd91c892da25a9cc4824d69c83483ee19770 /libcxx/test/std/re/re.alg
parent382d355359c879472eaaf49e389f848fcf69003b (diff)
downloadbcm5719-llvm-8dc9dcaeaccd3be047740b1f19c4beee33b0f44e.tar.gz
bcm5719-llvm-8dc9dcaeaccd3be047740b1f19c4beee33b0f44e.zip
Apparently XFAIL tests that are supposed to fail to compile can be problematic. They still get compiled, and if the compile succeeds, the buildbots complain. Replace the XFAIL with #error.
llvm-svn: 267591
Diffstat (limited to 'libcxx/test/std/re/re.alg')
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.match/basic.fail.cpp6
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp6
2 files changed, 8 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 d8cc1f0f616..f1a5554b433 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,14 @@
// regex_constants::match_flag_type =
// regex_constants::match_default) = delete;
-// XFAIL: C++98, c++03, c++11
-
#include <regex>
#include <cassert>
#include "test_macros.h"
+#if TEST_STD_VER < 14
+#error
+#endif
+
int main()
{
{
diff --git a/libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp b/libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp
index e060d2945fa..c6b2b41161d 100644
--- a/libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp
@@ -18,12 +18,14 @@
// regex_constants::match_flag_type =
// regex_constants::match_default) = delete;
-// XFAIL: C++98, c++03, c++11
-
#include <regex>
#include <cassert>
#include "test_macros.h"
+#if TEST_STD_VER < 14
+#error
+#endif
+
int main()
{
{
OpenPOWER on IntegriCloud