summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/depr/exception.unexpected/set.unexpected/get_unexpected.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/depr/exception.unexpected/set.unexpected/get_unexpected.pass.cpp')
-rw-r--r--libcxx/test/std/depr/exception.unexpected/set.unexpected/get_unexpected.pass.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud