1 // Make sure that we call terminate when a throw() spec is violated even
2 // with -fnothrow-opt. The function pointers are there to make sure that
3 // the compiler doesn't get clever about optimizing the calls based on
4 // knowledge about the called functions.
6 // { dg-options "-fnothrow-opt" }
19 void f() throw() { p1(); }
25 std::set_terminate (my_terminate);