aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p3070.C
blob: c9278736d2cc703a9d9aa03c9d404fc5cdbf4e9a (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
// Build don't link:
// 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();
};