summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/thunk5.C
blob: 15526bf9ee3217cf9a3e286a67307f013d0af9f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/35067
// The thunks should be weak even on targets without one-only support.
// { dg-require-weak "" }
// { dg-final { scan-assembler "weak.*ZTv" } }

struct A
{
  virtual ~A() { }
};

struct B: virtual A { };

B b;