gcc/testsuite/g++.dg/other/pr22003.C
raw| 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" } */ |
| 5 | |
| 6 | struct c1 |
| 7 | { |
| 8 | virtual ~c1(); |
| 9 | }; |
| 10 | class c4; |
| 11 | |
| 12 | struct c2 |
| 13 | { |
| 14 | virtual c4* func(); |
| 15 | }; |
| 16 | |
| 17 | struct c3 : c1, c2 |
| 18 | { |
| 19 | c4* func(); |
| 20 | }; |
| 21 | |
| 22 | c4* c3::func() |
| 23 | { |
| 24 | return 0; |
| 25 | } |
| 26 |