Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / other / pr22003.C
blob222ccac7bebdeaa6bd3482a265359844e05d1dfb
1 /* PR rtl-optimization/22003 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target freorder } */
4 /* { dg-options "-O2 -fno-exceptions -freorder-blocks-and-partition" } */
6 struct c1
8       virtual ~c1();
9 };
10 class c4;
12 struct c2
14       virtual c4* func();
17 struct c3 : c1, c2
19       c4* func();
22 c4* c3::func()