Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
overload
/
conv-op1.C
blob: d3096192bfa2f9a7ee0befca31cb3ba5d184a9cc [
file
] [
log
] [
blame
]
// PR c++/47703
typedef
void
(*
pfn
)(
int
&);
struct
A
{
operator
pfn
()
{
return
0
;
}
};
void
f
()
{
const
int
i
=
42
;
A
()(
i
);
// { dg-message "(conversion)" }
// { dg-error "qualifiers" "" { target *-*-* } .-1 }
}
// { dg-prune-output "no match" }