2 // { dg-do compile { target c++11 } }
4 #define SA(X) static_assert ((X), #X)
9 A (const A& = 1) = default; // { dg-error "default argument" }
10 void operator= (const A&) = default; // { dg-error "defaulted|match" }
19 SA(__has_trivial_constructor(B));
27 SA(__has_trivial_destructor(C));
32 D& operator= (const D&) = default;
35 SA(__has_trivial_assign(D));
39 explicit E (const E&) = default;
42 SA(__has_trivial_copy(E));
51 // Can't be const because F copy ctor isn't.
52 G(const G&) = default; // { dg-error "const" }
57 virtual ~H() = default;