8sa1-gcc/gcc/testsuite/g++.old-deja/g++.brendan/ambiguity1.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

18 lines
238 B
C

// Build don't link:
// GROUPS passed ambiguity
struct A {
A (int);
};
struct B {
B (int);
};
void myfunc (const A& t0); // ERROR -
void myfunc (const B& t0); // ERROR -
int main ()
{
myfunc(1); // ERROR - ambiguous call
}