-- Collection of code snippets by Arne Vajhøj 
-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
with Ada.Text_IO,Ada.Integer_Text_IO;

use Ada.Text_IO,Ada.Integer_Text_IO;

procedure Test2 is

type TIX is range 0..1;
type TA is array(TIX) of integer;

A : TA;

begin
    for I in 0..2 loop
        A(I) := I + 1;
        Put(I,Width=>1);
        Put(" : ");
        Put(A(I),Width=>1);
        New_Line;
    end loop;
end Test2; 
