--
-- This is a test of semantic checking for the 4th assignment
--
-- Your compiler needs to report all the problems described
-- in the comments.
--

package test4 is body
    i, j : integer;
    a, i : float;       -- 'i' is already declared as an integer
    type vector is array [1..10] of float;
    m : vector;
    type matrix is array [2..1] of float;
    -- lower bound should not be larger than upper bound
begin
    j := 0.0;
    a := j;
    m[5] := 3.0;
    m[15] := 1.0;       -- reference out of bound
    read ( b );         -- the variable `b' is not defined
end.

