Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.eh/catch13.C

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