1 // Make sure that we call terminate when a noexcept spec is violated.
2 // 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-do run { target c++11 } }
18 void f() noexcept { p1(); }
24 std::set_terminate (my_terminate);