diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/pr22003.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/pr22003.C | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/pr22003.C b/gcc/testsuite/g++.dg/other/pr22003.C new file mode 100644 index 000000000..222ccac7b --- /dev/null +++ b/gcc/testsuite/g++.dg/other/pr22003.C @@ -0,0 +1,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() +{ +} + |