Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
cast-bug.C
blob: 2b8ef33e8e9372aeba2191ced3d237b7d6d113ca [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
S
{
S
();
S
(
S
&&);
private
:
S
(
S
&);
};
S f
()
{
S s
;
return
static_cast
<
S
&&>(
s
);
}