[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / nontype9.C
blobe16eef601870d339c44c70c997d9833820b40acc
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;
6 template <void (&FN)()>
7 struct g {
8   void foo(void) {
9     FN ();
10   }
13 void h ()
15   i = 7;
18 template struct g<h>;