#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

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267567 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2016-04-26 16:24:44 +00:00
parent d7f1f971d1
commit 6dfff1c9b9
140 changed files with 149 additions and 31 deletions

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
#include "platform_support.h" // locale name macros

View File

@@ -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

View File

@@ -23,6 +23,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
#include "platform_support.h" // locale name macros

View File

@@ -23,6 +23,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
#include "platform_support.h" // locale name macros

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
int main()

View File

@@ -23,6 +23,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
#include "platform_support.h" // locale name macros

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
int main()

View File

@@ -22,6 +22,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
int main()

View File

@@ -21,6 +21,7 @@
#include <string>
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test1()

View File

@@ -22,6 +22,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
int main()

View File

@@ -22,6 +22,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
int main()

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -18,6 +18,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -23,6 +23,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
#include "platform_support.h" // locale name macros

View File

@@ -20,6 +20,7 @@
#include <string>
#include <list>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -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_search(std::string("abcde"), m, re);
}
}
#endif

View File

@@ -23,6 +23,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
#include "platform_support.h" // locale name macros

View File

@@ -23,6 +23,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
#include "platform_support.h" // locale name macros

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
int main()

View File

@@ -23,6 +23,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
#include "platform_support.h" // locale name macros

View File

@@ -20,6 +20,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -18,6 +18,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -20,6 +20,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -34,6 +34,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -34,6 +34,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -17,6 +17,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -17,6 +17,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -31,6 +31,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -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

View File

@@ -17,6 +17,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -24,6 +24,7 @@
#include <regex>
#include <type_traits>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -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

View File

@@ -20,6 +20,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -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

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -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

View File

@@ -18,6 +18,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -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

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -24,6 +24,7 @@
#include <regex>
#include <type_traits>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -17,6 +17,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
int main()

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -17,6 +17,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -27,6 +27,7 @@
#include <regex>
#include <type_traits>
#include "test_macros.h"
template <class _Tp>
void where(const _Tp &) {}

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -17,6 +17,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
static bool error_escape_thrown(const char *pat)
{

View File

@@ -17,6 +17,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
static bool error_badrepeat_thrown(const char *pat)
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS

View File

@@ -18,6 +18,7 @@
#include <cassert>
#include "test_iterators.h"
#include "test_macros.h"
template <class Iter>
void

View File

@@ -19,6 +19,7 @@
#include <cassert>
#include "test_iterators.h"
#include "test_macros.h"
template <class Iter>
void

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class String>
void

View File

@@ -17,6 +17,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class String>
void

View File

@@ -19,6 +19,7 @@
#include <locale>
#include <cassert>
#include "test_macros.h"
#include "platform_support.h" // locale name macros
int main()

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -20,6 +20,7 @@
#include <regex>
#include <type_traits>
#include "test_macros.h"
int main()
{

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test()

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test()

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test(std::regex_constants::syntax_option_type syntax)

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test()

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test()

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test()

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test()

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test()

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_allocator.h"
template <class CharT, class Allocator>

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_allocator.h"
template <class CharT, class Allocator>

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
int main()

View File

@@ -21,6 +21,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
#include "test_allocator.h"

View File

@@ -21,6 +21,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
#include "test_allocator.h"
int main()

View File

@@ -19,6 +19,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

View File

@@ -23,6 +23,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test()

View File

@@ -16,6 +16,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test1()

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test()

View File

@@ -17,6 +17,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
void
test()

View File

@@ -27,6 +27,7 @@
#include <regex>
#include <type_traits>
#include "test_macros.h"
template <class CharT>
void

View File

@@ -15,6 +15,7 @@
#include <regex>
#include <cassert>
#include "test_macros.h"
int main()
{

Some files were not shown because too many files have changed in this diff Show More