summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p3070.C
blob: b292d41275f33e0e84faf6480d232d91699b4974 (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
30
31
32
// { dg-do assemble  }
// Caused an Internal Compiler Error.  Works now.
// prms-id: 3070

class Object {
public:
  virtual ~Object() {}
};

class BaseView {
protected:
  virtual void _forwardReceiveUpdate() = 0;
};


class View : public BaseView {
public:
  virtual ~View();
};

class TestViewBaseUpdate {
protected:
  virtual void _receiveUpdate();
};

class TestViewBase : public TestViewBaseUpdate, private View {
};

class TestView : public Object, public TestViewBase {
protected:
  virtual void _receiveUpdate();
};