blob: 9f50ff2c24279a9e446acae08aba304f5b18b010 [file] [log] [blame]
// { dg-do assemble }
// { dg-options "-Woverloaded-virtual" }
// Bug: a virtual function with the same name in an unrelated class will
// cause a bogus overloading warning.
struct A {
virtual void foo ();
};
struct B {
virtual void bar ();
};
struct C: public A {
virtual void bar ();
};