Sign in
gnu
/
gcc
/
57ea00136418991e847e46a6946a81a1df70c9a4
/
.
/
gcc
/
testsuite
/
g++.dg
/
overload
/
builtin1.C
blob: 9f66e336065103b7bd36d05cd31555af37f80286 [
file
] [
log
] [
blame
]
// Test that we don't discard builtin candidates inappropriately.
struct
B
{
};
struct
A
{
operator
int
();
operator
B
();
};
void
operator
+
(
B
,
B
);
// { dg-error "" "candidate" }
int
main
()
{
A a
;
a
+
a
;
// { dg-error "" "ambiguous" }
}