summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/depr/exception.unexpected
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/depr/exception.unexpected')
-rw-r--r--libcxx/test/std/depr/exception.unexpected/nothing_to_do.pass.cpp4
-rw-r--r--libcxx/test/std/depr/exception.unexpected/set.unexpected/get_unexpected.pass.cpp4
-rw-r--r--libcxx/test/std/depr/exception.unexpected/set.unexpected/set_unexpected.pass.cpp4
-rw-r--r--libcxx/test/std/depr/exception.unexpected/unexpected.handler/unexpected_handler.pass.cpp4
-rw-r--r--libcxx/test/std/depr/exception.unexpected/unexpected/unexpected.pass.cpp4
5 files changed, 15 insertions, 5 deletions
diff --git a/libcxx/test/std/depr/exception.unexpected/nothing_to_do.pass.cpp b/libcxx/test/std/depr/exception.unexpected/nothing_to_do.pass.cpp
index f77636c8475..1f764da05d6 100644
--- a/libcxx/test/std/depr/exception.unexpected/nothing_to_do.pass.cpp
+++ b/libcxx/test/std/depr/exception.unexpected/nothing_to_do.pass.cpp
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
-int main()
+int main(int, char**)
{
+
+ return 0;
}
diff --git a/libcxx/test/std/depr/exception.unexpected/set.unexpected/get_unexpected.pass.cpp b/libcxx/test/std/depr/exception.unexpected/set.unexpected/get_unexpected.pass.cpp
index 0974b2ee95d..7b11c3037f0 100644
--- a/libcxx/test/std/depr/exception.unexpected/set.unexpected/get_unexpected.pass.cpp
+++ b/libcxx/test/std/depr/exception.unexpected/set.unexpected/get_unexpected.pass.cpp
@@ -22,7 +22,7 @@ void f3()
std::exit(0);
}
-int main()
+int main(int, char**)
{
std::unexpected_handler old = std::get_unexpected();
@@ -37,4 +37,6 @@ int main()
std::set_terminate(f3);
(*old)();
assert(0);
+
+ return 0;
}
diff --git a/libcxx/test/std/depr/exception.unexpected/set.unexpected/set_unexpected.pass.cpp b/libcxx/test/std/depr/exception.unexpected/set.unexpected/set_unexpected.pass.cpp
index f46d1d4eec0..38ae81ec9b0 100644
--- a/libcxx/test/std/depr/exception.unexpected/set.unexpected/set_unexpected.pass.cpp
+++ b/libcxx/test/std/depr/exception.unexpected/set.unexpected/set_unexpected.pass.cpp
@@ -22,7 +22,7 @@ void f3()
std::exit(0);
}
-int main()
+int main(int, char**)
{
std::unexpected_handler old = std::set_unexpected(f1);
// verify there is a previous unexpected handler
@@ -33,4 +33,6 @@ int main()
std::set_terminate(f3);
(*old)();
assert(0);
+
+ return 0;
}
diff --git a/libcxx/test/std/depr/exception.unexpected/unexpected.handler/unexpected_handler.pass.cpp b/libcxx/test/std/depr/exception.unexpected/unexpected.handler/unexpected_handler.pass.cpp
index 549f8e0a5ac..e4d4869d77a 100644
--- a/libcxx/test/std/depr/exception.unexpected/unexpected.handler/unexpected_handler.pass.cpp
+++ b/libcxx/test/std/depr/exception.unexpected/unexpected.handler/unexpected_handler.pass.cpp
@@ -14,8 +14,10 @@
void f() {}
-int main()
+int main(int, char**)
{
std::unexpected_handler p = f;
((void)p);
+
+ return 0;
}
diff --git a/libcxx/test/std/depr/exception.unexpected/unexpected/unexpected.pass.cpp b/libcxx/test/std/depr/exception.unexpected/unexpected/unexpected.pass.cpp
index 883aa923757..2562b788487 100644
--- a/libcxx/test/std/depr/exception.unexpected/unexpected/unexpected.pass.cpp
+++ b/libcxx/test/std/depr/exception.unexpected/unexpected/unexpected.pass.cpp
@@ -19,9 +19,11 @@ void f1()
std::exit(0);
}
-int main()
+int main(int, char**)
{
std::set_unexpected(f1);
std::unexpected();
assert(false);
+
+ return 0;
}
OpenPOWER on IntegriCloud