summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.results
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re/re.results')
-rw-r--r--libcxx/test/std/re/re.results/re.results.acc/begin_end.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.acc/cbegin_cend.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.acc/index.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.acc/length.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.acc/position.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.acc/prefix.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.acc/str.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.acc/suffix.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.all/get_allocator.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.const/allocator.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.const/copy.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.const/copy_assign.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.const/default.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.const/move.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.const/move_assign.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.form/form1.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.form/form2.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.form/form3.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.form/form4.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.nonmember/equal.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.size/empty.fail.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.size/empty.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.size/max_size.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.state/ready.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.swap/member_swap.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/re.results.swap/non_member_swap.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.results/types.pass.cpp4
27 files changed, 81 insertions, 27 deletions
diff --git a/libcxx/test/std/re/re.results/re.results.acc/begin_end.pass.cpp b/libcxx/test/std/re/re.results/re.results.acc/begin_end.pass.cpp
index d83ef300f81..48fff58b019 100644
--- a/libcxx/test/std/re/re.results/re.results.acc/begin_end.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.acc/begin_end.pass.cpp
@@ -33,7 +33,9 @@ test()
assert(*i == m[j]);
}
-int main()
+int main(int, char**)
{
test();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.acc/cbegin_cend.pass.cpp b/libcxx/test/std/re/re.results/re.results.acc/cbegin_cend.pass.cpp
index 9b8db258777..bd9009a8a44 100644
--- a/libcxx/test/std/re/re.results/re.results.acc/cbegin_cend.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.acc/cbegin_cend.pass.cpp
@@ -33,7 +33,9 @@ test()
assert(*i == m[j]);
}
-int main()
+int main(int, char**)
{
test();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.acc/index.pass.cpp b/libcxx/test/std/re/re.results/re.results.acc/index.pass.cpp
index e3f6215e9f4..a5c25a82c81 100644
--- a/libcxx/test/std/re/re.results/re.results.acc/index.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.acc/index.pass.cpp
@@ -46,8 +46,10 @@ test(std::regex_constants::syntax_option_type syntax)
assert(m[4].matched == false);
}
-int main()
+int main(int, char**)
{
test(std::regex_constants::ECMAScript);
test(std::regex_constants::extended);
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.acc/length.pass.cpp b/libcxx/test/std/re/re.results/re.results.acc/length.pass.cpp
index d7d68c5e032..266ba692ff4 100644
--- a/libcxx/test/std/re/re.results/re.results.acc/length.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.acc/length.pass.cpp
@@ -30,7 +30,9 @@ test()
assert(m.length(4) == m[4].length());
}
-int main()
+int main(int, char**)
{
test();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.acc/position.pass.cpp b/libcxx/test/std/re/re.results/re.results.acc/position.pass.cpp
index 18aa79a4892..34256de3585 100644
--- a/libcxx/test/std/re/re.results/re.results.acc/position.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.acc/position.pass.cpp
@@ -30,7 +30,9 @@ test()
assert(m.position(4) == std::distance(s, m[4].first));
}
-int main()
+int main(int, char**)
{
test();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.acc/prefix.pass.cpp b/libcxx/test/std/re/re.results/re.results.acc/prefix.pass.cpp
index ab389cc4536..b2cd48d4db6 100644
--- a/libcxx/test/std/re/re.results/re.results.acc/prefix.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.acc/prefix.pass.cpp
@@ -28,7 +28,9 @@ test()
assert(m.prefix().matched == true);
}
-int main()
+int main(int, char**)
{
test();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.acc/str.pass.cpp b/libcxx/test/std/re/re.results/re.results.acc/str.pass.cpp
index ae5f5c7f652..ae4387d463a 100644
--- a/libcxx/test/std/re/re.results/re.results.acc/str.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.acc/str.pass.cpp
@@ -30,7 +30,9 @@ test()
assert(m.str(4) == std::string(m[4]));
}
-int main()
+int main(int, char**)
{
test();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.acc/suffix.pass.cpp b/libcxx/test/std/re/re.results/re.results.acc/suffix.pass.cpp
index 7e88ab106d1..c9d3855e9bd 100644
--- a/libcxx/test/std/re/re.results/re.results.acc/suffix.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.acc/suffix.pass.cpp
@@ -28,7 +28,9 @@ test()
assert(m.suffix().matched == true);
}
-int main()
+int main(int, char**)
{
test();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.all/get_allocator.pass.cpp b/libcxx/test/std/re/re.results/re.results.all/get_allocator.pass.cpp
index 1e0a3ce27c8..f0dcd7b6d42 100644
--- a/libcxx/test/std/re/re.results/re.results.all/get_allocator.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.all/get_allocator.pass.cpp
@@ -28,8 +28,10 @@ test(const Allocator& a)
assert(m.get_allocator() == a);
}
-int main()
+int main(int, char**)
{
test<char>(test_allocator<std::sub_match<const char*> >(3));
test<wchar_t>(test_allocator<std::sub_match<const wchar_t*> >(3));
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.const/allocator.pass.cpp b/libcxx/test/std/re/re.results/re.results.const/allocator.pass.cpp
index f8a5a83fed8..99ecb667b75 100644
--- a/libcxx/test/std/re/re.results/re.results.const/allocator.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.const/allocator.pass.cpp
@@ -28,8 +28,10 @@ test(const Allocator& a)
assert(m.get_allocator() == a);
}
-int main()
+int main(int, char**)
{
test<char>(test_allocator<std::sub_match<const char*> >(3));
test<wchar_t>(test_allocator<std::sub_match<const wchar_t*> >(3));
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.const/copy.pass.cpp b/libcxx/test/std/re/re.results/re.results.const/copy.pass.cpp
index f6733bdd148..a1dbea0e840 100644
--- a/libcxx/test/std/re/re.results/re.results.const/copy.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.const/copy.pass.cpp
@@ -30,11 +30,13 @@ test(const Allocator& a)
assert(m1.get_allocator() == m0.get_allocator());
}
-int main()
+int main(int, char**)
{
test<char> (std::allocator<std::sub_match<const char *> >());
test<wchar_t>(std::allocator<std::sub_match<const wchar_t *> >());
test<char> (test_allocator<std::sub_match<const char*> >(3));
test<wchar_t>(test_allocator<std::sub_match<const wchar_t*> >(3));
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.const/copy_assign.pass.cpp b/libcxx/test/std/re/re.results/re.results.const/copy_assign.pass.cpp
index 3429b066bee..943037e752f 100644
--- a/libcxx/test/std/re/re.results/re.results.const/copy_assign.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.const/copy_assign.pass.cpp
@@ -34,7 +34,7 @@ test(const Allocator& a)
assert(m1.get_allocator() == Allocator());
}
-int main()
+int main(int, char**)
{
test<char> (std::allocator<std::sub_match<const char *> >());
test<wchar_t>(std::allocator<std::sub_match<const wchar_t *> >());
@@ -46,4 +46,6 @@ int main()
// other_allocator has POCCA -> true
test<char> (other_allocator<std::sub_match<const char*> >(3));
test<wchar_t>(other_allocator<std::sub_match<const wchar_t*> >(3));
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.const/default.pass.cpp b/libcxx/test/std/re/re.results/re.results.const/default.pass.cpp
index 80f4a0269eb..a70c3441db3 100644
--- a/libcxx/test/std/re/re.results/re.results.const/default.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.const/default.pass.cpp
@@ -26,8 +26,10 @@ test()
assert(m.get_allocator() == std::allocator<std::sub_match<const CharT*> >());
}
-int main()
+int main(int, char**)
{
test<char>();
test<wchar_t>();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.const/move.pass.cpp b/libcxx/test/std/re/re.results/re.results.const/move.pass.cpp
index b3d2a0f4179..778e31b26f7 100644
--- a/libcxx/test/std/re/re.results/re.results.const/move.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.const/move.pass.cpp
@@ -35,7 +35,7 @@ test(const Allocator& a)
assert(m1.get_allocator() == a);
}
-int main()
+int main(int, char**)
{
test<char> (std::allocator<std::sub_match<const char *> >());
test<wchar_t>(std::allocator<std::sub_match<const wchar_t *> >());
@@ -44,4 +44,6 @@ int main()
assert(test_alloc_base::moved == 1);
test<wchar_t>(test_allocator<std::sub_match<const wchar_t*> >(3));
assert(test_alloc_base::moved == 2);
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.const/move_assign.pass.cpp b/libcxx/test/std/re/re.results/re.results.const/move_assign.pass.cpp
index 55c66e9e196..2a62af8f297 100644
--- a/libcxx/test/std/re/re.results/re.results.const/move_assign.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.const/move_assign.pass.cpp
@@ -35,7 +35,7 @@ test(const Allocator& a)
assert(m1.get_allocator() == Allocator());
}
-int main()
+int main(int, char**)
{
test<char> (std::allocator<std::sub_match<const char *> >());
test<wchar_t>(std::allocator<std::sub_match<const wchar_t *> >());
@@ -47,4 +47,6 @@ int main()
// other_allocator has POCMA -> true
test<char> (other_allocator<std::sub_match<const char*> >(3));
test<wchar_t>(other_allocator<std::sub_match<const wchar_t*> >(3));
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.form/form1.pass.cpp b/libcxx/test/std/re/re.results/re.results.form/form1.pass.cpp
index 6046f9be095..f435de8276b 100644
--- a/libcxx/test/std/re/re.results/re.results.form/form1.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.form/form1.pass.cpp
@@ -21,7 +21,7 @@
#include "test_macros.h"
#include "test_iterators.h"
-int main()
+int main(int, char**)
{
{
std::match_results<const char*> m;
@@ -152,4 +152,6 @@ int main()
assert(r == out + 34);
assert(std::wstring(out) == L"match: cdefghi, m[1]: efg, m[2]: e");
}
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.form/form2.pass.cpp b/libcxx/test/std/re/re.results/re.results.form/form2.pass.cpp
index 2c9d30eb2e2..b28c064e105 100644
--- a/libcxx/test/std/re/re.results/re.results.form/form2.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.form/form2.pass.cpp
@@ -24,7 +24,7 @@
#include "test_iterators.h"
#include "test_allocator.h"
-int main()
+int main(int, char**)
{
typedef std::basic_string<char, std::char_traits<char>, test_allocator<char> > nstr;
typedef std::basic_string<wchar_t, std::char_traits<wchar_t>, test_allocator<wchar_t> > wstr;
@@ -99,4 +99,6 @@ int main()
assert(r == out + 34);
assert(std::wstring(out) == L"match: cdefghi, m[1]: efg, m[2]: e");
}
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.form/form3.pass.cpp b/libcxx/test/std/re/re.results/re.results.form/form3.pass.cpp
index ca1a30732bd..62a735ca600 100644
--- a/libcxx/test/std/re/re.results/re.results.form/form3.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.form/form3.pass.cpp
@@ -23,7 +23,7 @@
#include "test_macros.h"
#include "test_allocator.h"
-int main()
+int main(int, char**)
{
typedef std::basic_string<char, std::char_traits<char>, test_allocator<char> > nstr;
typedef std::basic_string<wchar_t, std::char_traits<wchar_t>, test_allocator<wchar_t> > wstr;
@@ -82,4 +82,6 @@ int main()
wstr out = m.format(fmt, std::regex_constants::format_sed);
assert(out == L"match: cdefghi, m[1]: efg, m[2]: e");
}
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.form/form4.pass.cpp b/libcxx/test/std/re/re.results/re.results.form/form4.pass.cpp
index d46d6248d74..658e788b639 100644
--- a/libcxx/test/std/re/re.results/re.results.form/form4.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.form/form4.pass.cpp
@@ -20,7 +20,7 @@
#include <cassert>
#include "test_macros.h"
-int main()
+int main(int, char**)
{
{
std::match_results<const char*> m;
@@ -77,4 +77,6 @@ int main()
std::wstring out = m.format(fmt, std::regex_constants::format_sed);
assert(out == L"match: cdefghi, m[1]: efg, m[2]: e");
}
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.nonmember/equal.pass.cpp b/libcxx/test/std/re/re.results/re.results.nonmember/equal.pass.cpp
index e0b53609af6..3723ad4740f 100644
--- a/libcxx/test/std/re/re.results/re.results.nonmember/equal.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.nonmember/equal.pass.cpp
@@ -40,7 +40,9 @@ test()
assert(m1 == m2);
}
-int main()
+int main(int, char**)
{
test();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.size/empty.fail.cpp b/libcxx/test/std/re/re.results/re.results.size/empty.fail.cpp
index 7a92dd88ef7..e17c7742465 100644
--- a/libcxx/test/std/re/re.results/re.results.size/empty.fail.cpp
+++ b/libcxx/test/std/re/re.results/re.results.size/empty.fail.cpp
@@ -19,8 +19,10 @@
#include "test_macros.h"
-int main ()
+int main(int, char**)
{
std::match_results<const char*> c;
c.empty(); // expected-error {{ignoring return value of function declared with 'nodiscard' attribute}}
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.size/empty.pass.cpp b/libcxx/test/std/re/re.results/re.results.size/empty.pass.cpp
index 4644a8afb64..7eaed34ac6a 100644
--- a/libcxx/test/std/re/re.results/re.results.size/empty.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.size/empty.pass.cpp
@@ -30,7 +30,9 @@ test()
assert(m.size() == 3);
}
-int main()
+int main(int, char**)
{
test<char>();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.size/max_size.pass.cpp b/libcxx/test/std/re/re.results/re.results.size/max_size.pass.cpp
index 5293f45f78e..184933d135c 100644
--- a/libcxx/test/std/re/re.results/re.results.size/max_size.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.size/max_size.pass.cpp
@@ -24,8 +24,10 @@ test()
assert(m.max_size() > 0);
}
-int main()
+int main(int, char**)
{
test<char>();
test<wchar_t>();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.state/ready.pass.cpp b/libcxx/test/std/re/re.results/re.results.state/ready.pass.cpp
index daa1bf33730..476a66fdfba 100644
--- a/libcxx/test/std/re/re.results/re.results.state/ready.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.state/ready.pass.cpp
@@ -36,8 +36,10 @@ test2()
assert(m.ready() == true);
}
-int main()
+int main(int, char**)
{
test1();
test2();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.swap/member_swap.pass.cpp b/libcxx/test/std/re/re.results/re.results.swap/member_swap.pass.cpp
index 9cb6ae4417b..967fe11c5ac 100644
--- a/libcxx/test/std/re/re.results/re.results.swap/member_swap.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.swap/member_swap.pass.cpp
@@ -33,7 +33,9 @@ test()
assert(m2 == m1_save);
}
-int main()
+int main(int, char**)
{
test();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/re.results.swap/non_member_swap.pass.cpp b/libcxx/test/std/re/re.results/re.results.swap/non_member_swap.pass.cpp
index 21724fc4933..59ba59f3d64 100644
--- a/libcxx/test/std/re/re.results/re.results.swap/non_member_swap.pass.cpp
+++ b/libcxx/test/std/re/re.results/re.results.swap/non_member_swap.pass.cpp
@@ -35,7 +35,9 @@ test()
assert(m2 == m1_save);
}
-int main()
+int main(int, char**)
{
test();
+
+ return 0;
}
diff --git a/libcxx/test/std/re/re.results/types.pass.cpp b/libcxx/test/std/re/re.results/types.pass.cpp
index 3f5a31d0d9d..0fd8220843b 100644
--- a/libcxx/test/std/re/re.results/types.pass.cpp
+++ b/libcxx/test/std/re/re.results/types.pass.cpp
@@ -44,8 +44,10 @@ test()
static_assert((std::is_same<typename MR::string_type, std::basic_string<CharT> >::value), "");
}
-int main()
+int main(int, char**)
{
test<char>();
test<wchar_t>();
+
+ return 0;
}
OpenPOWER on IntegriCloud