blob: 65a408b47d0e190358618c6aed2825681d8f01fe [file] [log] [blame]
/* { dg-options "-Woverloaded-virtual" } */
class Base {
public:
virtual ~Base() {
}
};
class Derived: public Base {
public:
int Base() { // There should be no error here.
return 5;
}
};
int main() {
}