summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/ref1.C
blob: cb3ffc4520c5766a17fb28a0f60fbf6223b8020b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// { dg-prune-output "mangled name" }

int i;

template <void (&FN)()>
void g ()
{
  FN ();
}

void h ()
{
  i = 7;
}

template void g<h>();