--  Constrained array types whose bounds are known only when they are elaborated
--  (B7005-14, D192): library-level objects of one and two dimensions, a local, a parameter
--  and a record component, each with the type's bounds.
with Lib; with Rows;
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
   procedure Fill (R : in out Rows.Row) is
   begin
      for I in R'Range loop
         R (I) := I * I;
      end loop;
   end Fill;
   L : Rows.Row := (others => 0);
   type Pair is record
      A : Rows.Row;
   end record;
   P : constant Pair := (A => (others => 4));
begin
   Lib.G (2, 3) := 5;
   Fill (L);
   Put_Line (Integer'Image (Lib.G (2, 3)) & Integer'Image (Lib.G (10, 10)) & Integer'Image (Lib.G'Length (2)) & Integer'Image (L (10)) & Integer'Image (P.A (9)));
end Main;
