summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.warn/virt1.C
blob: 4550dd5e0547901eb25cf66ca54970dfd0c23201 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// { dg-options "-Woverloaded-virtual" }

struct A {
  virtual void f(); // { dg-warning "" } hidden 
};

struct B: public A {
  void f(int); // { dg-warning "" } by this
};