summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr45875.C
blob: f1347f543262210f7c76898ba69b0b4cc1e6b005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do compile }

struct c1 {};

struct c10 : c1
{
  virtual void foo ();
};

struct c11 : c10, c1		//  // { dg-warning "" }
{
  virtual void f6 ();
};

struct c28 : virtual c11
{
  void f6 ();
};

void check_c28 ()
{
  c28 obj;
  c11 *ptr = &obj;
  ptr->f6 ();
}