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] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/12316
2
// Origin: Volker Reichelt 
3
 
4
// { dg-do compile }
5
// { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" }
6
 
7
inline void FOO() {}
8
 
9
template struct A
10
{
11
    A() {}
12
    ~A() throw() {}
13
};
14
 
15
template struct B
16
{
17
    static void foo();
18
    static void bar() { foo(); }
19
};
20
 
21
struct C {};
22
 
23
template struct D : C
24
{
25
    D() {}
26
    ~D() { B::bar(); }
27
};
28
 
29
template struct E : D
30
{
31
    static void baz() {}
32
    E(A) { baz(); }
33
};
34
 
35
void BAR()
36
{
37
    new E(A());
38
}

powered by: WebSVN 2.1.0

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