blob: a9a92b1701ec92ca703e10f72304dea2f1194d60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* { dg-do compile } */
/* { dg-options "-fexceptions -fgimple -fdump-tree-eh-eh" } */
void __GIMPLE foo()
{
try
{
try
{
extern void might_throw1 ();
might_throw1 ();
}
finally
{
extern void might_throw2 ();
might_throw2 ();
}
else
{
extern void might_throw3 ();
might_throw3 ();
}
}
finally
{
extern void might_throw4 ();
might_throw4 ();
}
}
/* { dg-final { scan-tree-dump ".LP 1. might_throw1" "eh" } } */
/* { dg-final { scan-tree-dump ".LP 2. might_throw2" "eh" } } */
/* { dg-final { scan-tree-dump ".LP 2. might_throw3" "eh" } } */
|