summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/discr15_pkg.ads
blob: 1f3bf286ba19448fc85ec3969927f64bf4dd19c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;