// PR c++/87150
// { dg-do compile { target c++11 } }

struct S1 { S1(S1 &&); };
struct S2 : S1 {};

S1
f (S2 s)
{
  return s; // { dg-error "use of deleted function" "" { target c++17_down } }
}
