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-options "-std=c++0x" }
19 void f() noexcept { p1(); }
25 std::set_terminate (my_terminate);