diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/rv-cast.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/rv-cast.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/rv-cast.C b/gcc/testsuite/g++.dg/cpp0x/rv-cast.C new file mode 100644 index 000000000..48b7c13ba --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/rv-cast.C @@ -0,0 +1,6 @@ +// { dg-options "-std=c++0x" } + +void f(int i) +{ + int&& r = static_cast<int&&>(i); +} |