Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }