home *** CD-ROM | disk | FTP | other *** search
- -- ++
- -- run with -h 144
- -- --
- with Text_IO;
- procedure Alloc_Test is
- type Index is new Integer range 0 .. 128000;
- type Big_Array is array ( Index ) of Integer;
- package Index_IO is new Text_IO.Integer_IO ( Index );
- BA : Big_Array;
- Ind : Index;
- begin
- for I in Index loop
- BA(I) := Integer(I);
- end loop;
-
- loop
- Index_IO.Get ( Ind );
- exit when Ind = 0;
- Text_IO.Put_Line ( Integer'Image(BA(Ind)) );
- end loop;
- end Alloc_Test;