PR libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git] / gcc / testsuite / gnat.dg / opt43.adb
blob35b407c0afdc47b41d80fe82b57c6563b05e7af7
1 -- { dg-do compile }
2 -- { dg-options "-O -gnatws" }
4 procedure Opt43 is
6 function Func return Integer is
7 begin
8 if False then
9 return 0;
10 end if;
11 end;
13 begin
15 if Func = Func then
16 raise Program_Error;
17 end if;
19 exception
20 when Program_Error => null;
21 end;