OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [repo3.C] - Diff between revs 305 and 384

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 384
// { dg-do link }
// { dg-do link }
// { dg-options "-frepo" }
// { dg-options "-frepo" }
// { dg-require-host-local "" }
// { dg-require-host-local "" }
// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
// Test that we properly generate the vtable and such for C.
// Test that we properly generate the vtable and such for C.
// Contributed by scott snyder 
// Contributed by scott snyder 
// Build then link:
// Build then link:
struct A
struct A
{
{
  virtual ~A () {}
  virtual ~A () {}
};
};
template 
template 
struct B : virtual public A
struct B : virtual public A
{
{
  virtual void foo () {}
  virtual void foo () {}
};
};
template 
template 
struct C : virtual public A
struct C : virtual public A
{
{
};
};
template 
template 
struct D : public B, public C
struct D : public B, public C
{
{
};
};
main ()
main ()
{
{
  D x;
  D x;
}
}
// { dg-final { cleanup-repo-files } }
// { dg-final { cleanup-repo-files } }
 
 

powered by: WebSVN 2.1.0

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