aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/pr47053.C
blob: 186e3a7ad10e858f66a2505e0313b5071e82bc85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-options "-O2 -fnon-call-exceptions" } */
struct A
{
  int i;
  virtual ~A ()
  {}
};

struct B : virtual A
{};

struct C : public B
{
  C ();
  ~C (){}
};

void foo ()
{
  C c;
}