blob: 6a0c711a1b5e20e9e095e6cb113b99a9ae52d249 [file] [log] [blame]
// PR c++/46103
// { dg-do compile { target c++11 } }
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);
}