repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-reinterpret.C
blob
b55b67a9f4cd74181dba824b7c9d63b3a1e5f31e
1
// { dg-do run { target c++11 } }
2
3
void f(int &);
4
void f(int &&ir) { ir = 42; }
5
int main()
6
{
7
int x;
8
f(reinterpret_cast<int&&>(x));
9
return (x != 42);
10
}