Sign in
chromium
/
native_client
/
nacl-toolchain
/
gcc-4.4.3
/
.
/
gcc
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-reinterpret.C
blob: d5a186ba70df42aafe8671b1fab7699f7d79968f [
file
] [
log
] [
blame
]
// { dg-options -std=c++0x }
// { dg-do compile }
void
f
(
int
&);
void
f
(
int
&&
ir
)
{
ir
=
42
;
}
int
main
()
{
int
x
;
f
(
reinterpret_cast
<
int
&&>(
x
));
return
(
x
!=
42
);
}