URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [implicit10.C] - Rev 693
Compare with Previous | Blame | View Log
// PR c++/46103
// { dg-options -std=c++0x }
struct MoveOnly {
MoveOnly(const MoveOnly&) = delete;
MoveOnly(MoveOnly&&) { }
MoveOnly() = default;
};
struct A {
MoveOnly mo[1];
A() = default;
A(A&&) = default;
};
int main() {
A a;
A aa = static_cast<A&&>(a);
}