procedure Main is
   X : Integer := 0;
   function Twice (N : Integer) return Integer
     with Pre => N'Old < 100;
   function Twice (N : Integer) return Integer is (2 * N);
   A : constant array (1 .. 3) of Integer := (others => 0);
begin
   X := Twice'Result;
   X := @ + 1;
   X := A'Range;
   if @ > 0 then
      null;
   end if;
end Main;
