1 // PR c++/79967
2 // { dg-do compile { target c++11 } }
3 
4 template <void f [[noreturn]]()>
5 struct A
6 {
gA7   int g () { f (); return 0; }
8 };
9 
10 void f ();
11 
g(A<f> a)12 void g (A<f> a) { a.g (); }
13