OSDN Git Service

PR c++/27177
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / nontype9.C
1 // { dg-do compile  }
2 // Contributed by: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3 int i;
4
5 template <void (&FN)()>
6 struct g {
7   void foo(void) {
8     FN ();
9   }
10 };
11
12 void h ()
13 {
14   i = 7;
15 }
16
17 template struct g<h>;
18