1 // Core Issue #1331 (const mismatch with defaulted copy constructor)
2 // { dg-do compile { target c++11 } }
4 // If T2 (what would be the implicit declaration) has a parameter of
5 // type const C&, the corresponding parameter of T1 may be of type C&.
9 constexpr S(S &) = default;
14 constexpr T(volatile T &) = default; // { dg-error "defaulted" }
19 constexpr U(const volatile U &) = default; // { dg-error "defaulted" }
24 constexpr V(const V &) = default;