summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.iter
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-04-26 16:24:44 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-04-26 16:24:44 +0000
commitfd5ceb2228a7d3ae5e132bfd403a72150b919eb3 (patch)
tree333e5a05e174446be22a17010bf42412a8003bd6 /libcxx/test/std/re/re.iter
parent5dd550a3ffec6c1dfc2fb36a7c0db4527bdd3b00 (diff)
downloadbcm5719-llvm-fd5ceb2228a7d3ae5e132bfd403a72150b919eb3.tar.gz
bcm5719-llvm-fd5ceb2228a7d3ae5e132bfd403a72150b919eb3.zip
#include <test_macros.h> in all the regex tests, and remove all mentions of __cpluplus (use TEST_STD_VERS and/or XFAIL instead). No functional change
llvm-svn: 267567
Diffstat (limited to 'libcxx/test/std/re/re.iter')
-rw-r--r--libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp6
-rw-r--r--libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/default.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.regiter/re.regiter.deref/deref.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.regiter/re.regiter.incr/post.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.regiter/types.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.fail.cpp6
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/default.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.fail.cpp6
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.fail.cpp6
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.fail.cpp6
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.comp/equal.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.deref/deref.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.incr/post.pass.cpp1
-rw-r--r--libcxx/test/std/re/re.iter/re.tokiter/types.pass.cpp1
19 files changed, 24 insertions, 20 deletions
diff --git a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp
index 208de0e43ce..109aa87cc56 100644
--- a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp
+++ b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.fail.cpp
@@ -17,12 +17,11 @@
// regex_constants::match_flag_type m =
// 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("\\d{3}-\\d{4}"));
}
}
-#endif
diff --git a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.pass.cpp b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.pass.cpp
index c9fc7a3cd1c..c1cabff39d5 100644
--- a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/cnstr.pass.cpp
@@ -17,6 +17,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
diff --git a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/default.pass.cpp b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/default.pass.cpp
index 9d4766dc876..cb44fb37bc8 100644
--- a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/default.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.cnstr/default.pass.cpp
@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
template <class CharT>
void
diff --git a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.deref/deref.pass.cpp b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.deref/deref.pass.cpp
index e4933fe16f8..800f5643416 100644
--- a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.deref/deref.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.deref/deref.pass.cpp
@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
diff --git a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.incr/post.pass.cpp b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.incr/post.pass.cpp
index 3ec0d6c0c3b..f3b57f6bc9d 100644
--- a/libcxx/test/std/re/re.iter/re.regiter/re.regiter.incr/post.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.regiter/re.regiter.incr/post.pass.cpp
@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
diff --git a/libcxx/test/std/re/re.iter/re.regiter/types.pass.cpp b/libcxx/test/std/re/re.iter/re.regiter/types.pass.cpp
index db1d3eb958b..5b79957bea2 100644
--- a/libcxx/test/std/re/re.iter/re.regiter/types.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.regiter/types.pass.cpp
@@ -24,6 +24,7 @@
#include <regex>
#include <type_traits>
+#include "test_macros.h"
template <class CharT>
void
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.fail.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.fail.cpp
index 6753b0ad506..de581353e6b 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.fail.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.fail.cpp
@@ -18,13 +18,12 @@
// regex_constants::match_flag_type m =
// regex_constants::match_default);
-#if __cplusplus <= 201402L
-#error
-#else
+// XFAIL: C++98, c++03, c++11
#include <regex>
#include <vector>
#include <cassert>
+#include "test_macros.h"
int main()
{
@@ -36,4 +35,3 @@ int main()
std::regex("\\d{3}-\\d{4}"), indices);
}
}
-#endif
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.pass.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.pass.cpp
index a51b8274bdd..6d8c2f35e42 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/array.pass.cpp
@@ -20,6 +20,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/default.pass.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/default.pass.cpp
index 382815e0c1c..e71f3a69217 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/default.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/default.pass.cpp
@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
template <class CharT>
void
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.fail.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.fail.cpp
index e58183682ea..e8b9adbc89d 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.fail.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.fail.cpp
@@ -17,12 +17,11 @@
// regex_constants::match_flag_type m =
// regex_constants::match_default);
-#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("\\d{3}-\\d{4}"), {-1, 0, 1});
}
}
-#endif
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.pass.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.pass.cpp
index b40d7eb9224..6cffc0da9a5 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/init.pass.cpp
@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.fail.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.fail.cpp
index d0a100a1afc..b9fda701c87 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.fail.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.fail.cpp
@@ -16,12 +16,11 @@
// regex_constants::match_flag_type m =
// regex_constants::match_default);
-#if __cplusplus <= 201402L
-#error
-#else
+// XFAIL: C++98, c++03, c++11
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
@@ -32,4 +31,3 @@ int main()
std::regex("\\d{3}-\\d{4}"), -1);
}
}
-#endif
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.pass.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.pass.cpp
index d8111363c17..37fe2d9767e 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/int.pass.cpp
@@ -18,6 +18,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.fail.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.fail.cpp
index 94d8f9667d2..532cbb15a8b 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.fail.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.fail.cpp
@@ -18,12 +18,11 @@
// regex_constants::match_flag_type m =
// regex_constants::match_default);
-#if __cplusplus <= 201402L
-#error
-#else
+// XFAIL: C++98, c++03, c++11
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
@@ -37,4 +36,3 @@ int main()
std::regex("\\d{3}-\\d{4}"), v);
}
}
-#endif
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.pass.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.pass.cpp
index b04f5804509..473a706dd85 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/vector.pass.cpp
@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.comp/equal.pass.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.comp/equal.pass.cpp
index d6399f1148b..49d1b1b7ed5 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.comp/equal.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.comp/equal.pass.cpp
@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.deref/deref.pass.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.deref/deref.pass.cpp
index b096e3c0827..73ec62cfc67 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.deref/deref.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.deref/deref.pass.cpp
@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.incr/post.pass.cpp b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.incr/post.pass.cpp
index 727ab7af937..7d55bc1113f 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.incr/post.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.incr/post.pass.cpp
@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
+#include "test_macros.h"
int main()
{
diff --git a/libcxx/test/std/re/re.iter/re.tokiter/types.pass.cpp b/libcxx/test/std/re/re.iter/re.tokiter/types.pass.cpp
index 89287bdd1d0..b7777fbeeff 100644
--- a/libcxx/test/std/re/re.iter/re.tokiter/types.pass.cpp
+++ b/libcxx/test/std/re/re.iter/re.tokiter/types.pass.cpp
@@ -24,6 +24,7 @@
#include <regex>
#include <type_traits>
+#include "test_macros.h"
template <class CharT>
void
OpenPOWER on IntegriCloud