Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / opt38_pkg.adb
blob7cbbeeab3282cc4560ef481d4eb5e81d04614651
1 package body Opt38_Pkg is
3 procedure Proc (I : Integer);
4 pragma Inline (Proc);
6 procedure Proc (I : Integer) is
8 procedure Inner;
9 pragma No_Inline (Inner);
11 procedure Inner is
12 begin
13 if I /= 110 then
14 raise Program_Error;
15 end if;
16 end;
18 begin
19 if I > 0 then
20 Inner;
21 end if;
22 end;
24 procedure Test (I : Integer) is
25 begin
26 if I > -1 then
27 Proc (I);
28 else
29 Proc (I + 111);
30 end if;
31 end;
33 end Opt38_Pkg;