Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/torture/pr77947.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 // { dg-do compile } |
2 // { dg-additional-options "-g" } | |
3 | |
4 class A | |
5 { | |
6 public: | |
7 virtual bool m_fn1 () const = 0; | |
8 }; | |
9 class B | |
10 { | |
11 const A *m_fn2 () const; | |
12 }; | |
13 inline const A * | |
14 B::m_fn2 () const | |
15 { | |
16 class C : A | |
17 { | |
18 bool | |
19 m_fn1 () const | |
20 { | |
131 | 21 return true; |
111 | 22 } |
23 C () {} | |
24 }; | |
131 | 25 |
26 return 0; | |
111 | 27 } |
28 void | |
29 fn1 (A &p1) | |
30 { | |
31 p1.m_fn1 (); | |
32 } |