gcc/cp
[official-gcc.git] / gcc / testsuite / gnat.dg / array1.adb
blob0540f8876674f0a9cd42d1a1c7eaed5aa9b9b790
1 -- { dg-do compile }
2 -- { dg-options "-gnatws" }
4 package body array1 is
6 subtype Small is Integer range 1 .. MAX;
8 type LFT is record
9 RIC_ID : RIC_TYPE;
10 end record;
12 LF : array (RIC_TYPE, Small) of LFT;
14 procedure Foo (R : RIC_TYPE) is
15 L : Small;
16 T : LFT renames LF (R, L);
17 begin
18 Start_Timer (T'ADDRESS);
19 end;
21 procedure Bar (A : Integer; R : RIC_TYPE) is
22 S : LFT renames LF (R, A);
23 begin
24 null;
25 end;
27 procedure Start_Timer (Q : SYSTEM.ADDRESS) is
28 begin
29 null;
30 end;
32 end array1;