allow EH to escape from GIMPLE_EH_ELSE ELSE block
[official-gcc.git] / gcc / testsuite / gcc.dg / gimplefe-44.c
bloba9a92b1701ec92ca703e10f72304dea2f1194d60
1 /* { dg-do compile } */
2 /* { dg-options "-fexceptions -fgimple -fdump-tree-eh-eh" } */
4 void __GIMPLE foo()
6 try
8 try
10 extern void might_throw1 ();
11 might_throw1 ();
13 finally
15 extern void might_throw2 ();
16 might_throw2 ();
18 else
20 extern void might_throw3 ();
21 might_throw3 ();
24 finally
26 extern void might_throw4 ();
27 might_throw4 ();
31 /* { dg-final { scan-tree-dump ".LP 1. might_throw1" "eh" } } */
32 /* { dg-final { scan-tree-dump ".LP 2. might_throw2" "eh" } } */
33 /* { dg-final { scan-tree-dump ".LP 2. might_throw3" "eh" } } */