summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/crash9.C
blob: 292d3548c733873d3b8f2d60d36bd4f964925621 (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
25
26
27
28
29
// { dg-do assemble  }
// PRMS Id: 5085
// Bug: TYPE_POINTER_TO wasn't set.

class A {
   A(const A &);
   void operator=(const A &); 
public:
   inline A();
};

class B {
   A a;
public:
   B();
   virtual void f() const;
};

class C : public B { };

class D : C {
public:
  void f() const;
};

void D::f() const
{
  C::f();
}