2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gnat.dg / inline13.adb
blob4be6514aab03f21010354e5cf3e6e728d1c190fc
1 -- { dg-do compile }
2 -- { dg-options "-O -gnatn" }
4 package body Inline13 is
6 function F (L : Arr) return String is
7 Local : Arr (1 .. L'Length);
8 Ret : String (1 .. L'Length);
9 Pos : Natural := 1;
10 begin
11 Local (1 .. L'Length) := L;
12 for I in 1 .. Integer (L'Length) loop
13 Ret (Pos .. Pos + 8) := " " & Inline13_Pkg.Padded (Local (I));
14 Pos := Pos + 9;
15 end loop;
16 return Ret;
17 end;
19 end Inline13;