Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/torture/pr77947.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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 { | |
21 } | |
22 C () {} | |
23 }; | |
24 } | |
25 void | |
26 fn1 (A &p1) | |
27 { | |
28 p1.m_fn1 (); | |
29 } |