aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg4.C
blob: 978b3634aabaa183f1a7e0127989e1c26f09774b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Bug: f1 and f2 are treated as overloaded when they aren't.
// Build don't link:

int i;
void f1(double) { }
void f2(double) { }

void
test ()
{
    i ? f1 : f2;		// gets bogus error - improper overloading
}