Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-reinterpret.C
blob: b55b67a9f4cd74181dba824b7c9d63b3a1e5f31e [
file
] [
log
] [
blame
]
// { dg-do run { target c++11 } }
void
f
(
int
&);
void
f
(
int
&&
ir
)
{
ir
=
42
;
}
int
main
()
{
int
x
;
f
(
reinterpret_cast
<
int
&&>(
x
));
return
(
x
!=
42
);
}