diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/pr33930.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/pr33930.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr33930.C b/gcc/testsuite/g++.dg/cpp0x/pr33930.C new file mode 100644 index 000000000..d1e6fa56b --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr33930.C @@ -0,0 +1,10 @@ +// { dg-options "-std=c++0x" } +typedef const int* type; + +float& foo( const type& ggg ); +int& foo( type&& ggg ); + +void bar( int* someptr ) +{ + int& x = foo( someptr ); +} |