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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [gc2.C] - Rev 774

Go to most recent revision | 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>());
}

Go to most recent revision | 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.