summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler')
-rw-r--r--libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp b/libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp
index 232ce0a5a88..46e212662a2 100644
--- a/libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp
+++ b/libcxx/test/std/language.support/support.exception/exception.terminate/terminate.handler/terminate_handler.pass.cpp
@@ -10,10 +10,14 @@
// test terminate_handler
#include <exception>
+#include <type_traits>
+#include <cassert>
void f() {}
int main()
{
+ static_assert(std::is_same<std::terminate_handler, void(*)()>::value, "");
std::terminate_handler p = f;
+ assert(p == &f);
}
OpenPOWER on IntegriCloud