OSDN Git Service

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