aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit43.C
blob: 6396f09dde663d1c674e67afed7f7dcaac4b65ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
extern "C" void abort(void);

void F(int)
{
}


void F(double)
{
  abort();
}

template <void (*F)(int)> 
void g()
{
  (*F)(3);
}


int main()
{
  g<&F>();
}