Sign in
llvm
/
llvm-archive
/
5eb8977eca4a2028ac63105e486ac9faab3aa64e
/
.
/
llvm-gcc-4.2
/
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" }
}