summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/lineno2.C
blob: 3735d6481ee272740fedcbe8de771a8789c7206f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// Submitted by Nathan Sidwell <nathan@acm.org>
// Bug: g++ wasn't listing candidates for a failed conversion.

void f(int, double);		// { dg-error "" } candidate
void f(double, int);		// { dg-error "" } candidate
void f(int);			// { dg-error "" } candidate

int
main ()
{
  void (*ptr)(int, int);
  
  ptr = &f;			// { dg-error "" } no match
}