Mercurial > hg > CbC > CbC_gcc
annotate 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 |
rev | line source |
---|---|
111 | 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 { | |
131 | 24 return 0; |
111 | 25 } |
26 |