1 // { dg-do compile } 2 // { dg-prune-output "mangled name" } 3 // Contributed by: Giovanni Bajo <giovannibajo at gcc dot gnu dot org> 4 int i; 5 6 template <void (&FN)()> 7 struct g { foog8 void foo(void) { 9 FN (); 10 } 11 }; 12 h()13void h () 14 { 15 i = 7; 16 } 17 18 template struct g<h>; 19 20