2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr77947.C
blob14f8b13a864c364a175feac50740ccdebf28dd02
1 // { dg-do compile }
2 // { dg-additional-options "-g" }
4 class A
6 public:
7   virtual bool m_fn1 () const = 0;
8 };
9 class B
11   const A *m_fn2 () const;
13 inline const A *
14 B::m_fn2 () const
16   class C : A
17   {
18     bool
19     m_fn1 () const
20     {
21       return true;
22     }
23     C () {}
24   };
26   return 0;
28 void
29 fn1 (A &p1)
31   p1.m_fn1 ();