view gcc/testsuite/gnat.dg/discr15_pkg.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 Discr15_Pkg is

   type Moment is new Positive;

   type Multi_Moment_History is array (Natural range <>, Moment range <>) of Float;

   type Rec_Multi_Moment_History (Len : Natural; Size : Moment) is
   record
      Moments : Multi_Moment_History(0..Len, 1..Size);
      Last    : Natural;
   end record;

   function Sub_History_Of (History : Rec_Multi_Moment_History)
      return Rec_Multi_Moment_History;

end Discr15_Pkg;