URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [ambiguity1.C] - Rev 699
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed ambiguity
struct A {
A (int);
};
struct B {
B (int);
};
void myfunc (const A& t0); // { dg-message "note" }
void myfunc (const B& t0); // { dg-message "note" }
int main ()
{
myfunc(1); // { dg-error "ambiguous" }
// { dg-message "candidate" "candidate note" { target *-*-* } 16 }
}