summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/nest2.C
blob: dc61625ec2504144b674f6acb0d31ba095c1a076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// GROUPS passed nested-classes
class A {
protected:
  class B {
  public:
    ~B();
  private:
    float _datum;
  };
private:
  B *_b;
};

A::B::~B()
{
  _datum = 8.0;
}