summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/syntax2.C
blob: 159f28f89c76d31052bdc74ff95e301444767c77 (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
// { dg-do assemble  }
// { dg-options "-fsyntax-only" }
// Origin: Mark Mitchell <mark@codesourcery.com>

struct B 
{
  double d;
  
  virtual void f ();
};

struct C: virtual public B
{
  char c;
};

struct D: virtual public B
{
  int i;
  virtual void f ();
};

struct E : public C, public D 
{
};

E e;