Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
opover.C
blob: 3ec833e2e98f2409601717436cb2218545ec6079 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// Bug: g++ prefers a non-matching operator== over user-defined conversions
// and a default operator==.
struct
A
{
operator
int
();
};
struct
B
{
friend
int
operator
==
(
B
,
int
);
};
int
foo
(
A
&
a
)
{
return
a
==
1
;
}