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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [virt6.C] - Rev 12

Compare with Previous | Blame | View Log

// { dg-do run  }
// This testcase ensures that we can build vtable names for complex MI
// classes.

class C_A {
public:
  virtual int foo(void *) { return  0; }
} a;
 
class C_B : public C_A {
} b;
 
class C_C : public C_A {
} c;
 
class C_D : public C_A {
} d;
 
class C_E : public C_C, public C_B {
public:
  virtual int foo(void *) { return 0; }
} e;
 
class C_F : public C_D, public C_B {
public:
  virtual int foo(void *) { return 0; }
} f;
 
class C_G : public C_A {
public:
  virtual int foo(void *) { return 0; }
} g;
 
class C_H : public C_G, public C_E, public C_F {
public:
  virtual int foo(void *) { return 0; }
} h;
 
int main() {
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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