--  An empty collected aggregate's bounds: `First .. First - 1` of the index subtype, as GNAT
--  gives them; `1 .. 0` only where the index subtype starts at its base type's first value.
pragma Extensions_Allowed (On);
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
   type Arr is array (Natural range <>) of Integer;
   type Machine is array (Integer range <>) of Integer;
   A : constant Arr := (3, 1, 4);
   M : constant Machine := (3, 1, 4);
   E : constant Arr := [for X of A when X > 1000 => X];
   F : constant Arr := [for X of A when X > 2 => X];
   G : constant Machine := [for X of M when X > 1000 => X];
begin
   Put_Line (Integer'Image (E'First) & Integer'Image (E'Last) & Integer'Image (F'First) & Integer'Image (F'Last) & Integer'Image (G'Length));
end Main;
