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