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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [abi/] [thunk2.C] - Rev 12

Compare with Previous | Blame | View Log

// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-require-effective-target ilp32 }
// { dg-options -w }

struct A {
  virtual void f2 ();
  virtual void f3 ();
};

struct B : virtual public A {
  virtual void f3 ();
};

struct C : public A, public B {
  virtual void f4 ();
};

struct D : virtual public B, virtual public C, virtual public A 
{
  virtual void f5 ();
  virtual void f6 ();
  virtual void f3 ();
};

void D::f3 () {}

// { dg-final { scan-assembler _ZTvn4_n20_N1D2f3Ev } }

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.