2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / other / gc2.C
blob142229475cf99f17cb8bb7dad260954f810ff2db
1 // PR c++/12316
2 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4 // { dg-do compile }
5 // { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" }
7 inline void FOO() {}
9 template<typename> struct A
11     A() {}
12     ~A() throw() {}
15 template<typename> struct B
17     static void foo();
18     static void bar() { foo(); }
21 struct C {};
23 template<typename> struct D : C
25     D() {}
26     ~D() { B<void>::bar(); }
29 template<typename> struct E : D<void>
31     static void baz() {}
32     E(A<void>) { baz(); }
35 void BAR()
37     new E<void>(A<void>());