2 -- { dg-options "-O2 -gnatp" }
4 procedure Bit_Packed_Array3
is
6 type Bitmap_T
is array (1 .. 10) of Boolean;
7 pragma Pack
(Bitmap_T
);
13 for Maps_T
'Size use 10;
14 pragma Suppress_Initialization
(Maps_T
);
16 Tmap
: constant Bitmap_T
:= (others => True);
17 Fmap
: constant Bitmap_T
:= (others => False);
18 Amap
: constant Bitmap_T
:=
19 (1 => False, 2 => True, 3 => False, 4 => True, 5 => False,
20 6 => True, 7 => False, 8 => True, 9 => False, 10 => True);
22 function Some_Maps
return Maps_T
is
23 Value
: Maps_T
:= (M1
=> Amap
);
27 pragma Inline
(Some_Maps
);
33 for I
in Maps
.M1
'Range loop
34 if (I
mod 2 = 0 and then not Maps
.M1
(I
))
35 or else (I
mod 2 /= 0 and then Maps
.M1
(I
))