1// Test that an unhandled exception causes us to call terminate.
2
3#include <exception>
4#include <cstdlib>
5
6void my_terminate ()
7{
8  std::exit (0);
9}
10
11int main (void)
12{
13  std::set_terminate (my_terminate);
14  throw 1;
15  return 1;
16}
17