reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / ambiguity1.C
blob23e38e6a15411813e17a9dae019117bf9c226505
1 // { dg-do assemble  }
2 // GROUPS passed ambiguity
3 struct A {
4   A (int);
5 };
7 struct B {
8   B (int);
9 };
11 void myfunc (const A& t0); // { dg-message "note" } 
12 void myfunc (const B& t0); // { dg-message "note" } 
14 int main ()
16    myfunc(1);   // { dg-error "ambiguous" }