summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/virtual6.C
blob: 37a1797fb5cff439c5a9613c4ee20f744bda556f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// { dg-options "-Woverloaded-virtual" }
// Bug: g++ checks certain non-virtual functions to see if they override
// virtual functions.
// Submitted by Jason Merrill <jason@cygnus.com>

struct A {
  virtual void f (int);
};

struct B: public A {
  static void f ();
  void f (int);
};