1 // PR c++/87150
2 // { dg-do compile { target c++11 } }
3 
4 struct S1 { S1(S1 &&); };
5 struct S2 : S1 {};
6 
7 S1
f(S2 s)8 f (S2 s)
9 {
10   return s; // { dg-error "use of deleted function" "" { target c++17_down } }
11 }
12