blob: f9ae5351fd7b1e4b3e50fa5db13466405d4deb8c [file] [log] [blame]
// Test that the default B copy constructor calls the deleted A
// copy constructor.
// { dg-do compile { target c++11 } }
struct A // { dg-message "declares a move" }
{
A() = default;
A(A&&) = default;
template <class T>
A(const T& t) { t.i; }
};
struct B: A { }; // { dg-error "implicitly|use of deleted" }
int main()
{
B b;
B b2(b); // { dg-error "deleted" }
}