Debian Codegraph @

cmake/cxx_tests/verbose_terminate_handler.cpp

raw
1 // DESCRIPTION
2 //
3 // Test to check whether the compiler does have the verbose terminate handler, define
4 // HAVE_VERBOSE_TERMINATE_HANDLER.
5 // In sync with AC_CXX_VERBOSE_TERMINATE_HANDLER (2008-04-12).
6 //
7 // COPYLEFT
8 //
9 // Copyright (c) 2009 Theo Papadopoulo <[email protected]>
10 // Copyright (c) 2008 Lapo Luchini <[email protected]>
11 //
12 // Copying and distribution of this file, with or without modification, are
13 // permitted in any medium without royalty provided the copyright notice
14 // and this notice are preserved.
15
16 #include <exception>;
17
18 int main() {
19 std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
20 }