OSDN Git Service

PR c++/36628
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / pr33930.C
1 // { dg-options "-std=c++0x" }
2 typedef const int* type;
3
4 float& foo( const type& ggg );
5 int& foo( type&& ggg );
6
7 void bar( int* someptr )
8 {
9   int& x = foo( someptr );
10 }