summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/new6.C
blob: ecbafd13e6c0a1c85141807fa55278d8e29cdc50 (plain)
1
2
3
4
5
6
7
8
// { dg-options "-fkeep-inline-functions" }

struct B1 { virtual ~B1(); };
struct B2 { virtual ~B2(); };
struct D : B1, B2 {};
struct X : D      { X (); };

X::X () { new int; }