2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / move-return2.C
blob681e9ecaca10cd318f6e21d409727dca8c46b9ba
1 // PR c++/87150
2 // { dg-do compile { target c++11 } }
4 struct S1 { S1(S1 &&); };
5 struct S2 : S1 {};
7 S1
8 f (S2 s)
10   return s; // { dg-error "use of deleted function" }