2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/warn/Wuseless-cast.C: Extend.
From-SVN: r185531
2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
+ * g++.dg/warn/Wuseless-cast.C: Extend.
+
+2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
+
PR c++/14710
* g++.dg/warn/Wuseless-cast.C: New.
dynamic_cast<A&>(t);
}
+A prvalue();
+
void f()
{
int n;
#ifdef __GXX_EXPERIMENTAL_CXX0X__
(int&&)(42);
static_cast<int&&>(42);
+
+ (A&&)(prvalue());
+ const_cast<A&&>(prvalue());
+ static_cast<A&&>(prvalue());
#endif
A a;