--  Null ranges keep their bounds (ACATS C36304A, C45343A): a named aggregate whose only
--  choice is a null range has those bounds and no components (it had them reversed, and
--  three components), and catenating null arrays gives the last operand, bounds and all
--  (RM 4.5.3(6); its upper bound was one past its lower).
with Ada.Text_IO;
procedure Main is
   type Arr is array (Integer range <>) of Integer;
   A : constant Arr (1 .. 8) := (1, 2, 3, 4, 5, 6, 7, 8);
   Z : constant String := (-3 .. -5 => 'A');
   procedure Show (X : Arr) is
   begin
      Ada.Text_IO.Put_Line (Integer'Image (X'First) & Integer'Image (X'Last) & Integer'Image (X'Length));
   end Show;
begin
   Ada.Text_IO.Put_Line (Integer'Image (Z'First) & Integer'Image (Z'Last) & Integer'Image (Z'Length));
   Show (A (1 .. 0) & A (2 .. 0));
   Show (A (1 .. 0) & A (3 .. 4));
   Show (A (5 .. 4) & A (1 .. 0) & A (7 .. 3));
end Main;
