blob: 999f2c95c4935bff6c1cd2bef6a9b67be1e2c118 [file] [log] [blame]
// 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 } }
}