diff options
Diffstat (limited to 'libcxx/test/std/re/re.alg/re.alg.replace')
7 files changed, 20 insertions, 7 deletions
diff --git a/libcxx/test/std/re/re.alg/re.alg.replace/exponential.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.replace/exponential.pass.cpp index 715aa0affe4..868c3d8350b 100644 --- a/libcxx/test/std/re/re.alg/re.alg.replace/exponential.pass.cpp +++ b/libcxx/test/std/re/re.alg/re.alg.replace/exponential.pass.cpp @@ -24,7 +24,7 @@ #include "test_macros.h" -int main() +int main(int, char**) { try { std::regex re("a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?aaaaaaaaaaaaaaaaaaaa"); @@ -35,4 +35,5 @@ int main() } catch (const std::regex_error &e) { assert(e.code() == std::regex_constants::error_complexity); } + return 0; } diff --git a/libcxx/test/std/re/re.alg/re.alg.replace/test1.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.replace/test1.pass.cpp index df68aae9381..7e5332aaff8 100644 --- a/libcxx/test/std/re/re.alg/re.alg.replace/test1.pass.cpp +++ b/libcxx/test/std/re/re.alg/re.alg.replace/test1.pass.cpp @@ -24,7 +24,7 @@ #include "test_macros.h" #include "test_iterators.h" -int main() +int main(int, char**) { { std::regex phone_numbers("\\d{3}-\\d{4}"); @@ -104,4 +104,6 @@ int main() assert(r.base() == buf+12); assert(buf == std::string("123-555-1234")); } + + return 0; } diff --git a/libcxx/test/std/re/re.alg/re.alg.replace/test2.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.replace/test2.pass.cpp index 1cfaec6797e..d5e3b64a3eb 100644 --- a/libcxx/test/std/re/re.alg/re.alg.replace/test2.pass.cpp +++ b/libcxx/test/std/re/re.alg/re.alg.replace/test2.pass.cpp @@ -24,7 +24,7 @@ #include "test_macros.h" #include "test_iterators.h" -int main() +int main(int, char**) { { std::regex phone_numbers("\\d{3}-\\d{4}"); @@ -104,4 +104,6 @@ int main() assert(r.base() == buf+12); assert(buf == std::string("123-555-1234")); } + + return 0; } diff --git a/libcxx/test/std/re/re.alg/re.alg.replace/test3.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.replace/test3.pass.cpp index ebfb20d7bd5..09ecc53a9f9 100644 --- a/libcxx/test/std/re/re.alg/re.alg.replace/test3.pass.cpp +++ b/libcxx/test/std/re/re.alg/re.alg.replace/test3.pass.cpp @@ -20,7 +20,7 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { { std::regex phone_numbers("\\d{3}-\\d{4}"); @@ -70,4 +70,6 @@ int main() std::regex_constants::format_no_copy); assert(r == "123-555-1234"); } + + return 0; } diff --git a/libcxx/test/std/re/re.alg/re.alg.replace/test4.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.replace/test4.pass.cpp index 88816e3d7ac..4d567ed1f64 100644 --- a/libcxx/test/std/re/re.alg/re.alg.replace/test4.pass.cpp +++ b/libcxx/test/std/re/re.alg/re.alg.replace/test4.pass.cpp @@ -19,7 +19,7 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { { std::regex phone_numbers("\\d{3}-\\d{4}"); @@ -69,4 +69,6 @@ int main() std::regex_constants::format_no_copy); assert(r == "123-555-1234"); } + + return 0; } diff --git a/libcxx/test/std/re/re.alg/re.alg.replace/test5.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.replace/test5.pass.cpp index bcff51eddd1..585a60f8780 100644 --- a/libcxx/test/std/re/re.alg/re.alg.replace/test5.pass.cpp +++ b/libcxx/test/std/re/re.alg/re.alg.replace/test5.pass.cpp @@ -20,7 +20,7 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { { std::regex phone_numbers("\\d{3}-\\d{4}"); @@ -70,4 +70,6 @@ int main() std::regex_constants::format_no_copy); assert(r == "123-555-1234"); } + + return 0; } diff --git a/libcxx/test/std/re/re.alg/re.alg.replace/test6.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.replace/test6.pass.cpp index 923230aea4b..66a910172c4 100644 --- a/libcxx/test/std/re/re.alg/re.alg.replace/test6.pass.cpp +++ b/libcxx/test/std/re/re.alg/re.alg.replace/test6.pass.cpp @@ -20,7 +20,7 @@ #include <cassert> #include "test_macros.h" -int main() +int main(int, char**) { { std::regex phone_numbers("\\d{3}-\\d{4}"); @@ -70,4 +70,6 @@ int main() std::regex_constants::format_no_copy); assert(r == "123-555-1234"); } + + return 0; } |

