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