summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr58201.h
blob: 6071ccdf87748601bc0c58bb303947270657b07d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class A
{
 protected:
  A();
  virtual ~A();
};

class B : virtual public A
{
 public:
  B();
  virtual ~B();
};

class C
{
 private:
  class C2 : public B
   {
   public:
     C2();
     virtual ~C2();
   };
};