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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [other/] [gc2.C] - Diff between revs 301 and 338

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());
}
}
 
 

powered by: WebSVN 2.1.0

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