view gcc/testsuite/g++.dg/other/pr22003.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 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()
{
  return 0;
}