Debian Codegraph @

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

raw
1 // { dg-do compile }
2 // Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
3
4 void start (void);
5 void
6 ptw32_terminate (void)
7 {
8 try
9 {
10 try
11 {
12 start ();
13 }
14 catch (int)
15 {
16 }
17 catch (int) // { dg-warning "will be caught by earlier handler" }
18 {
19 }
20 }
21 catch (int)
22 {
23 }
24 }