summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit2.C
blob: 14d9f467436d68881329b7c9b2b0c1a85db42bc0 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }
// GROUPS passed templates
template <class T>
void foo(T t) {}

void bar()
{
  (void (*)(int)) (void (*)(double)) &foo<double>;
}