summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/abstract1.C
blob: e37ee2eacff56e98a2cd095b78f3a64cf8340e0e (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
// { dg-do assemble  }
// GROUPS passed abstract-functions
class O
{
public:
   virtual int c()=0;
};

class I: public O
{
};

class S: public virtual I
{
public: 
  int c();
  virtual int v()=0;
};

class D: public S
{
   int v();
};

D *p=new D();