with Ada.Text_IO;
procedure Main is
   type T1 is array (1 .. 10) of Integer;
   type T2 is array (1 .. 10, 1 .. 10) of Integer;
   function F return T1 is ((others => 1));
   function F return T2 is ((others => (others => 2)));
   function Ident_Char (X : Character) return Character is (X);
   package P is
      type T is range -100 .. 100;
      function G return T;
   end P;
   use P;
   package body P is
      function G return T is (5);
   end P;
   package Q is
      type QT is new T;
      function H return QT;
      function G return QT renames H;
      X : constant QT := G;
   end Q;
   package body Q is
      function H return QT is (7);
   end Q;
   type F_Fix is delta 0.5 range -5.0 .. 5.0;
   F1 : constant F_Fix := -4.0;
   F2 : constant F_Fix := 4.0;
   type G1 is digits 5 range F1 .. F2;
   type Rec is record A, B : Integer; end record;
   R : constant Rec := (1, 2);
   U1 : constant := Integer'Pos (10);
   H1 : constant := Boolean'Pos (1 < 2);
begin
   Ada.Text_IO.Put_Line (Integer'Image (F (7)) & Integer'Image (F (2, 3)) & Q.QT'Image (Q.X) & G1'Image (G1'Last));
   if (1, 2) /= R then
      Ada.Text_IO.Put_Line ("no");
   end if;
   Ada.Text_IO.Put_Line (Integer'Image (U1 + H1) & Ident_Char ('c'));
end Main;
