gcc/testsuite/gnat.dg/aggr35.adb
raw| 1 | -- { dg-do run } |
| 2 | -- { dg-options "-gnatws" } |
| 3 | |
| 4 | with Aggr35_Pkg; use Aggr35_Pkg; |
| 5 | |
| 6 | procedure Aggr35 is |
| 7 | begin |
| 8 | |
| 9 | declare |
| 10 | begin |
| 11 | Proc1; |
| 12 | raise Program_Error with "unreachable code"; |
| 13 | exception |
| 14 | when Storage_Error =>null; |
| 15 | end; |
| 16 | |
| 17 | Proc2; |
| 18 | |
| 19 | declare |
| 20 | begin |
| 21 | Proc3 (Func1 (32)); |
| 22 | raise Program_Error with "unreachable code"; |
| 23 | exception |
| 24 | when Storage_Error =>null; |
| 25 | end; |
| 26 | |
| 27 | Proc3 (Func2 (32)); |
| 28 | |
| 29 | Proc3 (Func3 (32)); |
| 30 | end; |