OSDN Git Service

2003-01-08 Larin Hennessey <larin@science.oregonstate.edu>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / opover.C
1 // Bug: g++ prefers a non-matching operator== over user-defined conversions
2 // and a default operator==.
3 // Build don't link:
4
5 struct A {
6   operator int ();
7 };
8
9 struct B {
10   friend int operator== (B, int);
11 };
12
13 int foo (A& a) {
14   return a == 1;
15 }