URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/12316
|
// PR c++/12316
|
// Origin: Volker Reichelt
|
// Origin: Volker Reichelt
|
|
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" }
|
// { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" }
|
|
|
inline void FOO() {}
|
inline void FOO() {}
|
|
|
template struct A
|
template struct A
|
{
|
{
|
A() {}
|
A() {}
|
~A() throw() {}
|
~A() throw() {}
|
};
|
};
|
|
|
template struct B
|
template struct B
|
{
|
{
|
static void foo();
|
static void foo();
|
static void bar() { foo(); }
|
static void bar() { foo(); }
|
};
|
};
|
|
|
struct C {};
|
struct C {};
|
|
|
template struct D : C
|
template struct D : C
|
{
|
{
|
D() {}
|
D() {}
|
~D() { B::bar(); }
|
~D() { B::bar(); }
|
};
|
};
|
|
|
template struct E : D
|
template struct E : D
|
{
|
{
|
static void baz() {}
|
static void baz() {}
|
E(A) { baz(); }
|
E(A) { baz(); }
|
};
|
};
|
|
|
void BAR()
|
void BAR()
|
{
|
{
|
new E(A());
|
new E(A());
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.