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)); }