| 1 |
-- { dg-do run } |
| 2 |
|
| 3 |
procedure Component_Value2 is |
| 4 |
|
| 5 |
type Bool_Packed_Array is array (Positive range 1 .. 20) of Boolean |
| 6 |
with Default_Component_Value => False, Pack; |
| 7 |
|
| 8 |
type Bool_Nonpacked_Array is array (Positive range 1 .. 20) of Boolean |
| 9 |
with Default_Component_Value => False; |
| 10 |
|
| 11 |
P : Bool_Packed_Array; |
| 12 |
NP : Bool_Nonpacked_Array; |
| 13 |
|
| 14 |
begin |
| 15 |
if not (for all I in P'Range => P(I) = False) then |
| 16 |
raise Program_Error; |
| 17 |
end if; |
| 18 |
|
| 19 |
if not (for all I in NP'Range => P(I) = False) then |
| 20 |
raise Program_Error; |
| 21 |
end if; |
| 22 |
end; |