// { 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.structA{virtualvoidfoo();};structB{virtualvoidbar();};structC:publicA{virtualvoidbar();};