summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/slice8_pkg3.adb
blob: 3524de1f0f580858ff48fcfb7d1f2158492809b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- { dg-do compile }
-- { dg-options "-gnatws" }

package body Slice8_Pkg3 is

   Current : Str.Lines (Str.Line_Count);
   Last    : Natural := 0;

   function Get return Str.Paragraph is
      Result : constant Str.Paragraph := (Size => Last,
                                          Data => Current (1..Last));
   begin
      Last := 0;
      return Result;
   end Get;

end Slice8_Pkg3;