aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/named.C2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ce93141..cbcdf77 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-29 Jason Merrill <jason@redhat.com>
+
+ * g++.dg/cpp0x/named.C: Test subobject of xvalue.
+
2011-06-30 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46787
diff --git a/gcc/testsuite/g++.dg/cpp0x/named.C b/gcc/testsuite/g++.dg/cpp0x/named.C
index ef1a2fb..2dff24c 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&&>(s)); // cast to rvalue
+ unnamed(static_cast<T&&>(t).s2); // cast to rvalue
}
int main()