Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-copy1.C
blob: 70d3d7192227dfee5fe1a0232c099b618a726811 [
file
] [
log
] [
blame
]
// PR c++/55017
// { dg-do compile { target c++11 } }
struct
S
{
// { dg-error "rvalue ref" }
int
&&
rr
;
S
(
int
&&
rr
)
:
rr
(
static_cast
<
int
&&>(
rr
))
{}
};
S s1
(
13
);
S s2
=
s1
;
// { dg-error "deleted" }