2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gnat.dg / array22.adb
blobc1725934a2454a82aa15b5e2df57cc33f2ce6b55
1 -- { dg-do compile }
3 with System; use System;
5 procedure Array22 is
7 type Integer_Address is mod Memory_Size;
9 type Memory is array (Integer_Address range <>) of Character;
11 type Chunk (First, Last : Integer_Address) is record
12 Mem : Memory (First .. Last);
13 end record;
15 C : Chunk (1, 8);
16 for C'Alignment use 8;
17 pragma Unreferenced (C);
19 begin
20 null;
21 end;