summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/pack16.adb
blob: eb8e2f9b8d362207722c515aa346eeb7d959ee1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- { dg-do compile }
-- { dg-options "-gnatws" }

with Pack16_Pkg; use Pack16_Pkg;

procedure Pack16 is

   type Sample_Table_T is array (1 .. N) of Integer;

   type Clock_T is record
      N_Ticks  : Integer := 0;
   end record;

   type Sampling_Descriptor_T is record
      Values : Sample_Table_T;
      Valid  : Boolean;
      Tstamp : Clock_T;
   end record;

   pragma Pack (Sampling_Descriptor_T);

   Sampling_Data : Sampling_Descriptor_T;

begin
   null;
end;