FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / catch13.C
blob47a0c90b9639d19039aa7c6256e470a7e835eb4e
1 // Copyright (C) 2001 Free Software Foundation, Inc.
2 // Contributed by Jakub Jelinek 2 May 2001 <jakub@redhat.com>
4 // Build don't link:
5 // Special g++ Options: -O2
7 struct A;
9 A *foo();
11 struct A {
12   A *a() { try { return foo(); } catch (...) {} }
13   void b();
14   void c();
17 void A::b() {
18   a()->c();