Debian Codegraph @

gcc/testsuite/g++.dg/ipa/pr65908.C

raw
1 // PR ipa/65908
2 // { dg-do compile }
3 // { dg-options "-O2" }
4 // { dg-additional-options "-fPIC" { target fpic } }
5
6 class A
7 {
8 A (A &);
9 };
10 class B
11 {
12 const A &m_fn1 () const;
13 };
14 class C
15 {
16 A m_fn2 () const;
17 };
18 A
19 C::m_fn2 () const
20 {
21 throw 0;
22 }
23 const A &
24 B::m_fn1 () const
25 {
26 throw 0;
27 }