]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.old-deja/g++.brendan/ambiguity1.C
call.c (struct conversion_info): Rename 'from_type' to 'from'.
[thirdparty/gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / ambiguity1.C
1 // { dg-do assemble }
2 // GROUPS passed ambiguity
3 struct A {
4 A (int);
5 };
6
7 struct B {
8 B (int);
9 };
10
11 void myfunc (const A& t0); // { dg-message "note" }
12 void myfunc (const B& t0); // { dg-message "note" }
13
14 int main ()
15 {
16 myfunc(1); // { dg-error "ambiguous" }
17 }