2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / eh1.C
blobe7cdc27777ea51f82da97b46085313244313e401
1 // { dg-do assemble  }
3 class C2 {
4 public:
5   ~C2();
6   C2 a() const;
7 };
8 class C3 {
9 public:
10   C3(const C2 &c);
12 class C4
14 public:
15   C3 *foo(bool b, const C2 &c);
16   C2 d() const;
18 C3 *C4::foo(bool b, const C2 &c)
20   return new C3(b ? d().a() : c);