summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p4693.C
blob: 67d040e919d12db7434cf52e81067051cac1241f (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
// { dg-do assemble  }
// prms-id: 4693

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

class b {
public:
  virtual void set_var() = 0;
};

class c : public b, public a { };

class d : public c {
public:
  void set_var() { }
};

int main() {
  d * test;
  test = new d;
}