aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/opt66.adb
blob: 94a1790737c18df7a8dca22e9dcce0035dd0cda1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- { dg-do compile }
-- { dg-options "-O" }

procedure Opt66 (I : Integer) is
  E : exception;
begin
  if I = 0 then
    raise E;
  end if;
  Opt66 (I - I / abs (I));
exception
  when others => null;
end;