URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
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 } }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.