Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
move-return2.C
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 } }
}