aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/virtual6.C
blob: d0769fc6ae72a67da672778b79e75eeebfc6657b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Bug: g++ checks certain non-virtual functions to see if they override
// virtual functions.
// Submitted by Jason Merrill <jason@cygnus.com>
// Special g++ Options: -Woverloaded-virtual
// Build don't link:

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

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