aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/rv-reinterpret.C
blob: b55b67a9f4cd74181dba824b7c9d63b3a1e5f31e (plain)
1
2
3
4
5
6
7
8
9
10
// { 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);
}