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