summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/aggr8.adb
blob: 457150e164066a28fe49d001e83630bc5aad01d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--  { dg-do compile }

procedure aggr8 is
   
   type Byte is mod 2 ** 8;
   subtype two is integer range 1..2;
   -- type Sequence is array (1 .. 2) of Byte;
   type Sequence is array (Two) of Byte;
   
   type Block is record
      Head : Sequence  := (11, 22);
   end record;
   
   procedure Nest is
      Blk : Block;  pragma Unreferenced (Blk);
   begin
      null;
   end;

begin
   null;
end;