summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/torture/pr41257.C
blob: 60cfc53397980c628f5832c1d23ffca8a761757b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */

struct A
{
  virtual void foo();
  virtual ~A();
  int i;
};

struct B : virtual A {};

struct C : B
{
  virtual void foo();
};

void bar()
{
  C().foo();
}
OpenPOWER on IntegriCloud