2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / opover.C
blob3ec833e2e98f2409601717436cb2218545ec6079
1 // { dg-do assemble  }
2 // Bug: g++ prefers a non-matching operator== over user-defined conversions
3 // and a default operator==.
5 struct A {
6   operator int ();
7 };
9 struct B {
10   friend int operator== (B, int);
13 int foo (A& a) {
14   return a == 1;