* snames.ads-tmpl (Name_Ivdep): New pragma-related name.
[official-gcc.git] / gcc / testsuite / gnat.dg / varsize_copy.adb
blob4fa0ff8622e7885e50d93add2da85697b9c81d7a
1 -- { dg-do compile }
2 -- { dg-options "-O -gnatws" }
4 package body Varsize_Copy is
6 type Key_Mapping_Type is record
7 Page : Page_Type;
8 B : Boolean;
9 end record;
11 type Key_Mapping_Array is array (Key_Type) of Key_Mapping_Type;
13 type Set is record
14 Key_Mappings : Key_Mapping_Array;
15 end record;
17 S : Set;
19 function F (Key : Key_Type) return Page_Type is
20 begin
21 return S.Key_Mappings (Key).Page;
22 end;
24 end Varsize_Copy;