Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/lineno2.C

raw
1 // { dg-do assemble }
2 // Submitted by Nathan Sidwell <[email protected]>
3 // Bug: g++ wasn't listing candidates for a failed conversion.
4
5 void f(int, double); // { dg-message "" } candidate
6 void f(double, int); // { dg-message "" } candidate
7 void f(int); // { dg-message "" } candidate
8
9 int
10 main ()
11 {
12 void (*ptr)(int, int);
13
14 ptr = &f; // { dg-error "" } no match
15 }