(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
rv-reinterpret.C
// { 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);
}