summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/opt9.adb
blob: a0f1ac5c6896e92157603a64140c143292e019cf (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 -O" }

with Opt9_Pkg; use Opt9_Pkg;

procedure Opt9 is

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

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

   type Rec is record
      Values : Array_T;
      Valid  : Boolean;
      Tstamp : Clock_T;
   end record;

   pragma Pack (Rec);

   Data : Rec;

begin
   null;
end;