summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/dtor2.C
blob: 6b89cc8eae0582f9c87bc79cbdfdb05b6de7f61a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile }
// { dg-options "-Wabi -fabi-version=1" }

struct A {
  virtual void a ();
};

struct B {
  virtual ~B ();
};

struct C : public A, public B { // { dg-warning "virtual" }
  virtual void c ();
};