aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/rv-reinterpret.C
blob: 5b6e4c3d126a7dfacd3ba5d4fc042fe0cfe9a934 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options -std=c++0x }
// { dg-do run }

void f(int &);
void f(int &&ir) { ir = 42; }
int main()
{
  int x;
  f(reinterpret_cast<int&&>(x));
  return (x != 42);
}