From: Jason Merrill Date: Thu, 30 Jun 2011 21:09:55 +0000 (-0400) Subject: * g++.dg/cpp0x/named.C: Test subobject of xvalue. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4757b0716f16474798aa86c94fdd4df8fbfb25a1;p=gcc.git * g++.dg/cpp0x/named.C: Test subobject of xvalue. From-SVN: r175731 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ce9314187dd..cbcdf77e553 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-06-29 Jason Merrill + + * g++.dg/cpp0x/named.C: Test subobject of xvalue. + 2011-06-30 Richard Guenther PR tree-optimization/46787 diff --git a/gcc/testsuite/g++.dg/cpp0x/named.C b/gcc/testsuite/g++.dg/cpp0x/named.C index ef1a2fb6f7d..2dff24ca475 100644 --- a/gcc/testsuite/g++.dg/cpp0x/named.C +++ b/gcc/testsuite/g++.dg/cpp0x/named.C @@ -13,6 +13,7 @@ struct T S && get() { return movel(s); } operator S&&() { return movel(s); } S && s; + S s2; }; void named(S const &) {} @@ -33,6 +34,7 @@ void f(S && p) unnamed(t.get()); // function return unnamed(t); // implicit conversion unnamed(static_cast(s)); // cast to rvalue + unnamed(static_cast(t).s2); // cast to rvalue } int main()