runtime: copy more of scheduler from Go 1.7 runtime
[official-gcc.git] / gcc / testsuite / gnat.dg / inline4_pkg.adb
blobcd01eda4f3340adaf0fd288ba3c1b9deac78338f
1 package body Inline4_Pkg is
3 procedure Test (I : Integer) is
5 function F (J : Integer) return Integer is
6 begin
7 return I - J;
8 end;
9 pragma Inline_Always (F);
11 begin
12 if I /= F (I) then
13 raise Program_Error;
14 end if;
15 end;
17 end Inline4_Pkg;