Sign in
gnu
/
gcc
/
609d1c1bf0472f9d9415b0b124603348dbcd9e4e
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
opover.C
blob: f4a3213f0d3f6f6b904f31a361c095e78b3939bd [
file
] [
log
] [
blame
]
// Bug: g++ prefers a non-matching operator== over user-defined conversions
// and a default operator==.
// Build don't link:
struct
A
{
operator
int
();
};
struct
B
{
friend
int
operator
==
(
B
,
int
);
};
int
foo
(
A
&
a
)
{
return
a
==
1
;
}