--  Assigning a whole array whose bounds are known at run time (RM 5.2(13)): the target keeps
--  its bounds and the components slide in, in every engine (verada-core.md A.4).
with Ada.Text_IO; use Ada.Text_IO;

procedure Main is
   type Arr is array (Integer range <>) of Integer;
   procedure Fill (A : in out Arr; B : Arr) with Pre => A'Length = B'Length is
   begin
      A := B;
   end Fill;
   X : Arr (5 .. 7) := (others => 0);
   Y : constant Arr (1 .. 3) := (10, 20, 30);
begin
   Fill (X, Y);
   Put_Line (Integer'Image (X'First) & Integer'Image (X (5)) & Integer'Image (X (7)));
end Main;
