summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit30.C
blob: d9b51b88519825abb2e9285dcd26df6d2cb00755 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// GROUPS passed templates
template <class T>
void foo(T, T*);


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