Debian Codegraph @

gcc/testsuite/g++.dg/eh/builtin8.C

raw
1 // PR c++/88482
2 // { dg-do compile }
3
4 #include <cxxabi.h>
5
6 struct S { S (); S (const S &); ~S (); };
7
8 int
9 foo (int x)
10 {
11 if (x > 27)
12 throw 19;
13 try
14 {
15 if (x > 15)
16 throw S ();
17 }
18 catch (S s)
19 {
20 throw;
21 }
22 return x + 3;
23 }