view gcc/testsuite/gnat.dg/array7.ads @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

package Array7 is

   package Range_Subtype is
      type Arr is array (Positive range <>) of Integer;
      type Arr_Acc is access Arr;

      subtype My_Range is Integer range 1 .. 25;
      function Get_Arr (Nbr : My_Range) return Arr_Acc;
   end;

   package Range_Type is

      type My_Range is range 1 .. 25;
      type Arr is array (My_Range range <>) of Integer;
      type Arr_Acc is access Arr;

      function Get_Arr (Nbr : My_Range) return Arr_Acc;
   end;

end Array7;