2 // { dg-do compile { target c++11 } }
4 // If a class declares move operations, the implicitly declared copy
5 // operations are deleted.
13 // But they can still be explicitly defaulted.
18 B(const B&) = default;
20 B& operator=(const B&) = default;
38 A a2 (a); // { dg-error "deleted" }
39 a2 = a; // { dg-error "deleted" }
46 C c2(c); // { dg-error "deleted" }
47 c2 = c; // { dg-error "deleted" }
50 D d2(d); // { dg-error "deleted" }
51 d2 = d; // { dg-error "deleted" }
54 // { dg-prune-output "because" }