int main ( int argc, char *argv [] ) { int retVal = 0; retVal += test_empty (); retVal += test_counted (); retVal += test_exception_in_constructor (); retVal += test_exception_in_destructor (); return retVal; }
int main () { int retVal = 0; retVal += test_empty (); retVal += test_counted (); #ifndef LIBCXXABI_HAS_NO_EXCEPTIONS retVal += test_exception_in_constructor (); retVal += test_exception_in_destructor (); #endif return retVal; }
int main ( int argc, char *argv [] ) { std::set_terminate ( my_terminate ); test_exception_in_destructor (); return 1; // we failed if we get here }