diff options
Diffstat (limited to 'libcxx/test/std/re/re.regex/re.regex.assign')
10 files changed, 30 insertions, 10 deletions
diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/assign.il.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/assign.il.pass.cpp index daaac65bed6..532a72073e6 100644 --- a/libcxx/test/std/re/re.regex/re.regex.assign/assign.il.pass.cpp +++ b/libcxx/test/std/re/re.regex/re.regex.assign/assign.il.pass.cpp @@ -20,7 +20,7 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { std::regex r2; r2.assign({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}); @@ -30,4 +30,6 @@ int main() r2.assign({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex::extended); assert(r2.flags() == std::regex::extended); assert(r2.mark_count() == 2); + + return 0; } diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/assign.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/assign.pass.cpp index 9507ea31012..c580ab96cba 100644 --- a/libcxx/test/std/re/re.regex/re.regex.assign/assign.pass.cpp +++ b/libcxx/test/std/re/re.regex/re.regex.assign/assign.pass.cpp @@ -16,7 +16,7 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { std::regex r1("(a([bc]))"); std::regex r2; @@ -34,4 +34,6 @@ int main() assert(r2.mark_count() == 2); assert(std::regex_search("ab", r2)); #endif + + return 0; } diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/assign_iter_iter_flag.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/assign_iter_iter_flag.pass.cpp index 9eba95b33bf..dd32c9466df 100644 --- a/libcxx/test/std/re/re.regex/re.regex.assign/assign_iter_iter_flag.pass.cpp +++ b/libcxx/test/std/re/re.regex/re.regex.assign/assign_iter_iter_flag.pass.cpp @@ -21,7 +21,7 @@ #include "test_macros.h" #include "test_iterators.h" -int main() +int main(int, char**) { typedef input_iterator<std::string::const_iterator> I; typedef forward_iterator<std::string::const_iterator> F; @@ -43,4 +43,6 @@ int main() r2.assign(F(s4.begin()), F(s4.end()), std::regex::extended); assert(r2.flags() == std::regex::extended); assert(r2.mark_count() == 2); + + return 0; } diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/assign_ptr_flag.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/assign_ptr_flag.pass.cpp index 30c7281dacc..9445bbaf9ff 100644 --- a/libcxx/test/std/re/re.regex/re.regex.assign/assign_ptr_flag.pass.cpp +++ b/libcxx/test/std/re/re.regex/re.regex.assign/assign_ptr_flag.pass.cpp @@ -16,7 +16,7 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { std::regex r2; r2.assign("(a([bc]))"); @@ -26,4 +26,6 @@ int main() r2.assign("(a([bc]))", std::regex::extended); assert(r2.flags() == std::regex::extended); assert(r2.mark_count() == 2); + + return 0; } diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/assign_ptr_size_flag.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/assign_ptr_size_flag.pass.cpp index 08fdf871dcc..cdbdae43054 100644 --- a/libcxx/test/std/re/re.regex/re.regex.assign/assign_ptr_size_flag.pass.cpp +++ b/libcxx/test/std/re/re.regex/re.regex.assign/assign_ptr_size_flag.pass.cpp @@ -16,10 +16,12 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { std::regex r2; r2.assign("(a([bc]))", 9, std::regex::extended); assert(r2.flags() == std::regex::extended); assert(r2.mark_count() == 2); + + return 0; } diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/assign_string_flag.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/assign_string_flag.pass.cpp index 7ea385967c3..4b1bcef9a6b 100644 --- a/libcxx/test/std/re/re.regex/re.regex.assign/assign_string_flag.pass.cpp +++ b/libcxx/test/std/re/re.regex/re.regex.assign/assign_string_flag.pass.cpp @@ -18,7 +18,7 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { std::regex r2; r2.assign(std::string("(a([bc]))")); @@ -28,4 +28,6 @@ int main() r2.assign(std::string("(a([bc]))"), std::regex::extended); assert(r2.flags() == std::regex::extended); assert(r2.mark_count() == 2); + + return 0; } diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/copy.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/copy.pass.cpp index c74f0a6f029..1abb7215165 100644 --- a/libcxx/test/std/re/re.regex/re.regex.assign/copy.pass.cpp +++ b/libcxx/test/std/re/re.regex/re.regex.assign/copy.pass.cpp @@ -16,11 +16,13 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { std::regex r1("(a([bc]))"); std::regex r2; r2 = r1; assert(r2.flags() == std::regex::ECMAScript); assert(r2.mark_count() == 2); + + return 0; } diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/il.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/il.pass.cpp index 75803e6002d..880fd5c79c8 100644 --- a/libcxx/test/std/re/re.regex/re.regex.assign/il.pass.cpp +++ b/libcxx/test/std/re/re.regex/re.regex.assign/il.pass.cpp @@ -18,10 +18,12 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { std::regex r2; r2 = {'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}; assert(r2.flags() == std::regex::ECMAScript); assert(r2.mark_count() == 2); + + return 0; } diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/ptr.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/ptr.pass.cpp index f2ca05a9bfe..3791f815272 100644 --- a/libcxx/test/std/re/re.regex/re.regex.assign/ptr.pass.cpp +++ b/libcxx/test/std/re/re.regex/re.regex.assign/ptr.pass.cpp @@ -16,10 +16,12 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { std::regex r2; r2 = "(a([bc]))"; assert(r2.flags() == std::regex::ECMAScript); assert(r2.mark_count() == 2); + + return 0; } diff --git a/libcxx/test/std/re/re.regex/re.regex.assign/string.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.assign/string.pass.cpp index 3cb8e8b41be..e33819ab3c3 100644 --- a/libcxx/test/std/re/re.regex/re.regex.assign/string.pass.cpp +++ b/libcxx/test/std/re/re.regex/re.regex.assign/string.pass.cpp @@ -17,10 +17,12 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { std::regex r2; r2 = std::string("(a([bc]))"); assert(r2.flags() == std::regex::ECMAScript); assert(r2.mark_count() == 2); + + return 0; } |