Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr81659.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
5 a (int b)
6 {
7 if (b)
8 throw;
9 try
10 {
11 a (3);
12 }
13 catch (int)
14 {
15 }
16 catch (int) // { dg-warning "will be caught by earlier handler" }
17 {
18 }
19 }
20