blob: 3c83d4946f2745cf65f373db60ff5c84c6ac1300 (
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
34
35
|
/* { dg-do compile } */
/* { dg-require-effective-target exceptions } */
/* { dg-options "-fexceptions -fgimple -fdump-tree-eh-eh" } */
/* { dg-require-effective-target nonlocal_goto } */
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" } } */
|