1// { dg-do assemble  }
2// { dg-options "-O2" }
3// Copyright (C) 2001 Free Software Foundation, Inc.
4// Contributed by Jakub Jelinek 2 May 2001 <jakub@redhat.com>
5
6
7struct A;
8
9A *foo();
10
11struct A {
12  A *a() { try { return foo(); } catch (...) {} }
13  void b();
14  void c();
15};
16
17void A::b() {
18  a()->c();
19}
20