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