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

void f(int, double);		// ERROR - candidate
void f(double, int);		// ERROR - candidate
void f(int);			// ERROR - candidate

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