2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / lineno2.C
blob3735d6481ee272740fedcbe8de771a8789c7206f
1 // { dg-do assemble  }
2 // Submitted by Nathan Sidwell <nathan@acm.org>
3 // Bug: g++ wasn't listing candidates for a failed conversion.
5 void f(int, double);            // { dg-error "" } candidate
6 void f(double, int);            // { dg-error "" } candidate
7 void f(int);                    // { dg-error "" } candidate
9 int
10 main ()
12   void (*ptr)(int, int);
13   
14   ptr = &f;                     // { dg-error "" } no match