(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
overload/
ref-conv1.C
// 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)); }