aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr33930.C
blob: 8d9312c019bb74b41a6a491296dca3c59e9e8d0d (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile { target c++11 } }
typedef const int* type;

float& foo( const type& ggg );
int& foo( type&& ggg );

void bar( int* someptr )
{
  int& x = foo( someptr );
}