blob: f820f4b82c1169d9110c866dd0409ddd2be1a676 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-std=c++11 -Wsuggest-override" }
struct A
{
A();
virtual ~A();
virtual void f();
virtual int bar();
int c();
operator int();
virtual operator float();
};
struct B : A
{
B();
virtual ~B();
virtual void f(); // { dg-warning "can be marked override" }
virtual int bar() override;
int c();
operator int();
virtual operator float(); // { dg-warning "can be marked override" }
};