blob: 769cb14ecbcc0a6c774585b63806ee56bc566d52 [file] [log] [blame]
// PR c++/59645
struct A { virtual ~A(); };
struct B { virtual ~B(); };
struct C : A, B {};
struct X
{
virtual B* foo(volatile int); // { dg-warning "deprecated" "" { target c++2a } }
};
struct Y : X
{
virtual C* foo(volatile int); // { dg-warning "deprecated" "" { target c++2a } }
};
C* Y::foo(volatile int) { return 0; } // { dg-warning "deprecated" "" { target c++2a } }