blob: 8ddce77ae3f463e1a5aab1c61f9dc2e4b5677502 [file] [log] [blame]
// checking for ::set_terminate()
#include "config.h"
#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
# define throw()
#endif // _RWSTD_NO_EXCEPTION_SPECIFICATION
typedef void (*terminate_handler)();
// looking for a definition in compiler support library
terminate_handler set_terminate (terminate_handler) throw ();
void handler () { }
int main (int argc, char *argv[])
{
(void)&argv;
if (argc > 1) {
terminate_handler save = set_terminate (handler);
return save == handler;
}
return 0;
}