summaryrefslogtreecommitdiffstats
path: root/libcxx/test/libcxx/utilities/function.objects
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/libcxx/utilities/function.objects')
-rw-r--r--libcxx/test/libcxx/utilities/function.objects/func.require/bullet_1_2_3.pass.cpp4
-rw-r--r--libcxx/test/libcxx/utilities/function.objects/func.require/bullet_4_5_6.pass.cpp4
-rw-r--r--libcxx/test/libcxx/utilities/function.objects/func.require/bullet_7.pass.cpp4
-rw-r--r--libcxx/test/libcxx/utilities/function.objects/func.require/invoke.pass.cpp4
-rw-r--r--libcxx/test/libcxx/utilities/function.objects/refwrap/binary.pass.cpp4
-rw-r--r--libcxx/test/libcxx/utilities/function.objects/refwrap/unary.pass.cpp4
-rw-r--r--libcxx/test/libcxx/utilities/function.objects/unord.hash/murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp4
-rw-r--r--libcxx/test/libcxx/utilities/function.objects/version.pass.cpp4
8 files changed, 24 insertions, 8 deletions
diff --git a/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_1_2_3.pass.cpp b/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_1_2_3.pass.cpp
index b2946ab815b..28ee3a39afe 100644
--- a/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_1_2_3.pass.cpp
+++ b/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_1_2_3.pass.cpp
@@ -271,7 +271,7 @@ void test_derived_from_ref_wrap() {
}
#endif
-int main() {
+int main(int, char**) {
typedef void*& R;
typedef ArgType A;
TestCase<R(), 0, Q_None>::run();
@@ -367,4 +367,6 @@ int main() {
test_derived_from_ref_wrap();
#endif
+
+ return 0;
}
diff --git a/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_4_5_6.pass.cpp b/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_4_5_6.pass.cpp
index 15ab7adb499..ff7549d29c9 100644
--- a/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_4_5_6.pass.cpp
+++ b/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_4_5_6.pass.cpp
@@ -206,10 +206,12 @@ private:
-int main() {
+int main(int, char**) {
TestCase<ArgType>::run();
TestCase<ArgType const>::run();
TestCase<ArgType volatile>::run();
TestCase<ArgType const volatile>::run();
TestCase<ArgType*>::run();
+
+ return 0;
}
diff --git a/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_7.pass.cpp b/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_7.pass.cpp
index 469452706ff..fb789fa0a86 100644
--- a/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_7.pass.cpp
+++ b/libcxx/test/libcxx/utilities/function.objects/func.require/bullet_7.pass.cpp
@@ -247,7 +247,7 @@ void runTestCase() {
runFunctorTestCase <Sig, Arity, LValueCaster, ArgCaster>();
};
-int main() {
+int main(int, char**) {
typedef void*& R;
typedef ArgType A;
typedef A const CA;
@@ -323,4 +323,6 @@ int main() {
runFunctorTestCase11<R(A&&) const volatile &&, 1, MoveCVCaster, MC>();
}
#endif
+
+ return 0;
}
diff --git a/libcxx/test/libcxx/utilities/function.objects/func.require/invoke.pass.cpp b/libcxx/test/libcxx/utilities/function.objects/func.require/invoke.pass.cpp
index acc0c778f2e..e534553a87f 100644
--- a/libcxx/test/libcxx/utilities/function.objects/func.require/invoke.pass.cpp
+++ b/libcxx/test/libcxx/utilities/function.objects/func.require/invoke.pass.cpp
@@ -31,7 +31,7 @@ struct Type
#endif
};
-int main()
+int main(int, char**)
{
static_assert(sizeof(std::__invoke(&Type::f1, std::declval<Type >())) == 1, "");
static_assert(sizeof(std::__invoke(&Type::f2, std::declval<Type const >())) == 2, "");
@@ -41,4 +41,6 @@ int main()
static_assert(sizeof(std::__invoke(&Type::g3, std::declval<Type &&>())) == 3, "");
static_assert(sizeof(std::__invoke(&Type::g4, std::declval<Type const&&>())) == 4, "");
#endif
+
+ return 0;
}
diff --git a/libcxx/test/libcxx/utilities/function.objects/refwrap/binary.pass.cpp b/libcxx/test/libcxx/utilities/function.objects/refwrap/binary.pass.cpp
index de0b9508ab0..1f5bbcdef3b 100644
--- a/libcxx/test/libcxx/utilities/function.objects/refwrap/binary.pass.cpp
+++ b/libcxx/test/libcxx/utilities/function.objects/refwrap/binary.pass.cpp
@@ -46,7 +46,7 @@ struct C
typedef int result_type;
};
-int main()
+int main(int, char**)
{
static_assert((!std::is_base_of<std::binary_function<int, char, int>,
std::reference_wrapper<functor1> >::value), "");
@@ -76,4 +76,6 @@ int main()
std::reference_wrapper<float(C::*)(int)> >::value), "");
static_assert((std::is_base_of<std::binary_function<const volatile C*, int, float>,
std::reference_wrapper<float(C::*)(int) const volatile> >::value), "");
+
+ return 0;
}
diff --git a/libcxx/test/libcxx/utilities/function.objects/refwrap/unary.pass.cpp b/libcxx/test/libcxx/utilities/function.objects/refwrap/unary.pass.cpp
index 27e2763db07..429722e4711 100644
--- a/libcxx/test/libcxx/utilities/function.objects/refwrap/unary.pass.cpp
+++ b/libcxx/test/libcxx/utilities/function.objects/refwrap/unary.pass.cpp
@@ -46,7 +46,7 @@ struct C
typedef int result_type;
};
-int main()
+int main(int, char**)
{
static_assert((std::is_base_of<std::unary_function<int, char>,
std::reference_wrapper<functor1> >::value), "");
@@ -74,4 +74,6 @@ int main()
std::reference_wrapper<float(C::*)() const volatile> >::value), "");
static_assert((!std::is_base_of<std::unary_function<C*, float>,
std::reference_wrapper<float(C::*)(int)> >::value), "");
+
+ return 0;
}
diff --git a/libcxx/test/libcxx/utilities/function.objects/unord.hash/murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp b/libcxx/test/libcxx/utilities/function.objects/unord.hash/murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp
index 7241bc059ce..54f4db76446 100644
--- a/libcxx/test/libcxx/utilities/function.objects/unord.hash/murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp
+++ b/libcxx/test/libcxx/utilities/function.objects/unord.hash/murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp
@@ -28,7 +28,7 @@ void test(const void* key, int len) {
}
}
-int main() {
+int main(int, char**) {
const std::string TestCases[] = {
"abcdaoeuaoeclaoeoaeuaoeuaousaotehu]+}sthoasuthaoesutahoesutaohesutaoeusaoetuhasoetuhaoseutaoseuthaoesutaohes"
"00000000000000000000000000000000000000000000000000000000000000000000000",
@@ -37,4 +37,6 @@ int main() {
const size_t NumCases = sizeof(TestCases)/sizeof(TestCases[0]);
for (size_t i=0; i < NumCases; ++i)
test(TestCases[i].data(), TestCases[i].length());
+
+ return 0;
}
diff --git a/libcxx/test/libcxx/utilities/function.objects/version.pass.cpp b/libcxx/test/libcxx/utilities/function.objects/version.pass.cpp
index 41bbca6f638..6f8540f1a24 100644
--- a/libcxx/test/libcxx/utilities/function.objects/version.pass.cpp
+++ b/libcxx/test/libcxx/utilities/function.objects/version.pass.cpp
@@ -14,6 +14,8 @@
#error _LIBCPP_VERSION not defined
#endif
-int main()
+int main(int, char**)
{
+
+ return 0;
}
OpenPOWER on IntegriCloud