comparison gcc/testsuite/g++.dg/ipa/pr64896.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
3 // { dg-options "-O2" } 3 // { dg-options "-O2" }
4 4
5 struct A { int a, b; }; 5 struct A { int a, b; };
6 struct B { A c; int d; }; 6 struct B { A c; int d; };
7 struct C { virtual B fn1 () const; }; 7 struct C { virtual B fn1 () const; };
8 struct D { B fn2 () const; int fn3 () const; C *fn4 () const; }; 8 struct D { B fn2 () const; void fn3 () const; C *fn4 () const; };
9 9
10 int 10 void
11 D::fn3 () const 11 D::fn3 () const
12 { 12 {
13 fn4 ()->fn1 (); 13 fn4 ()->fn1 ();
14 } 14 }
15 15