Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
overload
/
ref-conv1.C
blob: 1c525fbc7822bcf86df68fc93cb3516ceffc9e56 [
file
] [
log
] [
blame
]
// PR c++/50442
// { dg-additional-options "-Wno-return-type" }
template
<
typename
T
>
struct
MoveRef
{
operator
T
&
()
{}
};
template
<
typename
T
>
MoveRef
<
T
>
Move
(
T
&)
{}
struct
Thing
{};
Thing
foo
(
const
Thing
*
p
)
{
return
Thing
(
Move
(*
p
));
}