Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/eh/builtin8.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
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 } |