summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit43.C
blob: 199bcc137d9314e834286fcc0d5ca2de17c45c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-do run  }
extern "C" void abort(void);

void F(int)
{
}


void F(double)
{
  abort();
}

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


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