1#include <exception>
2
3struct One { };
4struct Two { };
5
6extern "C" void abort ();
7extern void doit (void) throw (Two);
8extern void handle_unexpected (void);
9
10void
11unexpected1_x ()
12{
13  std::set_unexpected (handle_unexpected);
14
15  try
16  {
17    doit ();
18  }
19  catch (Two &)
20  {
21  }
22  catch (...)
23  {
24    abort ();
25  }
26}
27