2 // { dg-do compile { target c++11 } }
4 template<typename F> int caller(F f) noexcept(noexcept(f())) { f(); return 0; }
6 void func1() noexcept { }
8 void func2() { throw 1; }
10 int instantiate_caller_with_func1 = caller(func1);
12 static_assert( !noexcept(caller(func2)), "" );