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