Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/explicit43.C

raw
1 // { dg-do run }
2 extern "C" void abort(void);
3
4 void F(int)
5 {
6 }
7
8
9 void F(double)
10 {
11 abort();
12 }
13
14 template <void (*F)(int)>
15 void g()
16 {
17 (*F)(3);
18 }
19
20
21 int main()
22 {
23 g<&F>();
24 }