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