Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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 } }
}