2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gnat.dg / aggr8.adb
blob457150e164066a28fe49d001e83630bc5aad01d7
1 -- { dg-do compile }
3 procedure aggr8 is
5 type Byte is mod 2 ** 8;
6 subtype two is integer range 1..2;
7 -- type Sequence is array (1 .. 2) of Byte;
8 type Sequence is array (Two) of Byte;
10 type Block is record
11 Head : Sequence := (11, 22);
12 end record;
14 procedure Nest is
15 Blk : Block; pragma Unreferenced (Blk);
16 begin
17 null;
18 end;
20 begin
21 null;
22 end;