OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.abi/] [vbase2.C] - Blame information for rev 199

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run  }
2
// Copyright (C) 2001 Free Software Foundation, Inc.
3
// Contributed by Nathan Sidwell 5 Jun 2001 
4
 
5
// Bug 3006. Constructor vtables were wrong.
6
 
7
struct A
8
{
9
  virtual ~A() {}
10
};
11
 
12
class B : public virtual A {};
13
class C : public virtual B {};
14
class D1 : public virtual C {};
15
class D2 : public virtual C {};
16
class E
17
  : public virtual D1,
18
    public virtual D2
19
{
20
};
21
 
22
 
23
int
24
main(int argc, char* argv[])
25
{
26
  new E;
27
  return 0;
28
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.