Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/virtual6.C

raw
1 // { dg-do assemble }
2 // { dg-options "-Woverloaded-virtual" }
3 // Bug: g++ checks certain non-virtual functions to see if they override
4 // virtual functions.
5 // Submitted by Jason Merrill <[email protected]>
6
7 struct A {
8 virtual void f (int);
9 };
10
11 struct B: public A {
12 static void f ();
13 void f (int);
14 };