diff options
Diffstat (limited to 'libcxx/test/std/re/re.syn')
18 files changed, 54 insertions, 18 deletions
diff --git a/libcxx/test/std/re/re.syn/cmatch.pass.cpp b/libcxx/test/std/re/re.syn/cmatch.pass.cpp index 1e7149bb7da..7b85a69a2ff 100644 --- a/libcxx/test/std/re/re.syn/cmatch.pass.cpp +++ b/libcxx/test/std/re/re.syn/cmatch.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::match_results<const char*>, std::cmatch>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/cregex_iterator.pass.cpp b/libcxx/test/std/re/re.syn/cregex_iterator.pass.cpp index 15c7ea8cfa4..29fdadeb669 100644 --- a/libcxx/test/std/re/re.syn/cregex_iterator.pass.cpp +++ b/libcxx/test/std/re/re.syn/cregex_iterator.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::regex_iterator<const char*>, std::cregex_iterator>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/cregex_token_iterator.pass.cpp b/libcxx/test/std/re/re.syn/cregex_token_iterator.pass.cpp index a5b1bc58340..7ca531dfe63 100644 --- a/libcxx/test/std/re/re.syn/cregex_token_iterator.pass.cpp +++ b/libcxx/test/std/re/re.syn/cregex_token_iterator.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::regex_token_iterator<const char*>, std::cregex_token_iterator>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/csub_match.pass.cpp b/libcxx/test/std/re/re.syn/csub_match.pass.cpp index 7c3d644fd11..2ace0b983bf 100644 --- a/libcxx/test/std/re/re.syn/csub_match.pass.cpp +++ b/libcxx/test/std/re/re.syn/csub_match.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::sub_match<const char*>, std::csub_match>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/regex.pass.cpp b/libcxx/test/std/re/re.syn/regex.pass.cpp index 1fe91ec349b..0b4c07b6ff1 100644 --- a/libcxx/test/std/re/re.syn/regex.pass.cpp +++ b/libcxx/test/std/re/re.syn/regex.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::basic_regex<char>, std::regex>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/smatch.pass.cpp b/libcxx/test/std/re/re.syn/smatch.pass.cpp index bee9f9f0d63..01fa1e95552 100644 --- a/libcxx/test/std/re/re.syn/smatch.pass.cpp +++ b/libcxx/test/std/re/re.syn/smatch.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::match_results<std::string::const_iterator>, std::smatch>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/sregex_iterator.pass.cpp b/libcxx/test/std/re/re.syn/sregex_iterator.pass.cpp index a691cc799a7..1ae462c6b77 100644 --- a/libcxx/test/std/re/re.syn/sregex_iterator.pass.cpp +++ b/libcxx/test/std/re/re.syn/sregex_iterator.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::regex_iterator<std::string::const_iterator>, std::sregex_iterator>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/sregex_token_iterator.pass.cpp b/libcxx/test/std/re/re.syn/sregex_token_iterator.pass.cpp index 6d148280d73..4b67b66f291 100644 --- a/libcxx/test/std/re/re.syn/sregex_token_iterator.pass.cpp +++ b/libcxx/test/std/re/re.syn/sregex_token_iterator.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::regex_token_iterator<std::string::const_iterator>, std::sregex_token_iterator>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/ssub_match.pass.cpp b/libcxx/test/std/re/re.syn/ssub_match.pass.cpp index 0730d667ef1..fe331296849 100644 --- a/libcxx/test/std/re/re.syn/ssub_match.pass.cpp +++ b/libcxx/test/std/re/re.syn/ssub_match.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::sub_match<std::string::const_iterator>, std::ssub_match>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/wcmatch.pass.cpp b/libcxx/test/std/re/re.syn/wcmatch.pass.cpp index 4c9b7e1f272..f373e57ac46 100644 --- a/libcxx/test/std/re/re.syn/wcmatch.pass.cpp +++ b/libcxx/test/std/re/re.syn/wcmatch.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::match_results<const wchar_t*>, std::wcmatch>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/wcregex_iterator.pass.cpp b/libcxx/test/std/re/re.syn/wcregex_iterator.pass.cpp index c81aa78c157..3425c98fe8c 100644 --- a/libcxx/test/std/re/re.syn/wcregex_iterator.pass.cpp +++ b/libcxx/test/std/re/re.syn/wcregex_iterator.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::regex_iterator<const wchar_t*>, std::wcregex_iterator>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/wcregex_token_iterator.pass.cpp b/libcxx/test/std/re/re.syn/wcregex_token_iterator.pass.cpp index 9d407103aab..217653837e0 100644 --- a/libcxx/test/std/re/re.syn/wcregex_token_iterator.pass.cpp +++ b/libcxx/test/std/re/re.syn/wcregex_token_iterator.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::regex_token_iterator<const wchar_t*>, std::wcregex_token_iterator>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/wcsub_match.pass.cpp b/libcxx/test/std/re/re.syn/wcsub_match.pass.cpp index 7f18b272f99..86a2103b8bd 100644 --- a/libcxx/test/std/re/re.syn/wcsub_match.pass.cpp +++ b/libcxx/test/std/re/re.syn/wcsub_match.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::sub_match<const wchar_t*>, std::wcsub_match>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/wregex.pass.cpp b/libcxx/test/std/re/re.syn/wregex.pass.cpp index 9622b89d6d7..5be6f6fb59e 100644 --- a/libcxx/test/std/re/re.syn/wregex.pass.cpp +++ b/libcxx/test/std/re/re.syn/wregex.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::basic_regex<wchar_t>, std::wregex>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/wsmatch.pass.cpp b/libcxx/test/std/re/re.syn/wsmatch.pass.cpp index 98bcbdc4dcf..760057e6a74 100644 --- a/libcxx/test/std/re/re.syn/wsmatch.pass.cpp +++ b/libcxx/test/std/re/re.syn/wsmatch.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::match_results<std::wstring::const_iterator>, std::wsmatch>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/wsregex_iterator.pass.cpp b/libcxx/test/std/re/re.syn/wsregex_iterator.pass.cpp index 1f733d9050d..b1d7edf8770 100644 --- a/libcxx/test/std/re/re.syn/wsregex_iterator.pass.cpp +++ b/libcxx/test/std/re/re.syn/wsregex_iterator.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::regex_iterator<std::wstring::const_iterator>, std::wsregex_iterator>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/wsregex_token_iterator.pass.cpp b/libcxx/test/std/re/re.syn/wsregex_token_iterator.pass.cpp index b65e4134589..58454a59e93 100644 --- a/libcxx/test/std/re/re.syn/wsregex_token_iterator.pass.cpp +++ b/libcxx/test/std/re/re.syn/wsregex_token_iterator.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::regex_token_iterator<std::wstring::const_iterator>, std::wsregex_token_iterator>::value), ""); + + return 0; } diff --git a/libcxx/test/std/re/re.syn/wssub_match.pass.cpp b/libcxx/test/std/re/re.syn/wssub_match.pass.cpp index 8f82b34d295..7ca6dc7734c 100644 --- a/libcxx/test/std/re/re.syn/wssub_match.pass.cpp +++ b/libcxx/test/std/re/re.syn/wssub_match.pass.cpp @@ -14,7 +14,9 @@ #include <type_traits> #include "test_macros.h" -int main() +int main(int, char**) { static_assert((std::is_same<std::sub_match<std::wstring::const_iterator>, std::wssub_match>::value), ""); + + return 0; } |