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] - Rev 338

Compare with Previous | Blame | View Log

// PR c++/12316
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>

// { dg-do compile }
// { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" }

inline void FOO() {}

template<typename> struct A
{
    A() {}
    ~A() throw() {}
};

template<typename> struct B
{
    static void foo();
    static void bar() { foo(); }
};

struct C {};

template<typename> struct D : C
{
    D() {}
    ~D() { B<void>::bar(); }
};

template<typename> struct E : D<void>
{
    static void baz() {}
    E(A<void>) { baz(); }
};

void BAR()
{
    new E<void>(A<void>());
}

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.