From 8dc9dcaeaccd3be047740b1f19c4beee33b0f44e Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 26 Apr 2016 19:29:35 +0000 Subject: 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 --- libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libcxx/test/std/re/re.alg/re.alg.search/basic.fail.cpp') 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 #include #include "test_macros.h" +#if TEST_STD_VER < 14 +#error +#endif + int main() { { -- cgit v1.2.3