summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/pr22003.C
blob: 222ccac7bebdeaa6bd3482a265359844e05d1dfb (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
/* PR rtl-optimization/22003 */
/* { dg-do compile } */
/* { dg-require-effective-target freorder } */
/* { dg-options "-O2 -fno-exceptions -freorder-blocks-and-partition" } */

struct c1
{
      virtual ~c1();
};
class c4;

struct c2
{
      virtual c4* func();
};

struct c3 : c1, c2
{
      c4* func();
};

c4* c3::func()
{
}