/***************************************************
 ** @author   STF 470
 ** @version  0.0.1
 ** @purpose  1:6.2.7, verify handling of index notation applied to array on left-hand side
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// Indexed value notation can be used on both the right-hand side and left-hand side
// of assignments. The index of the first element shall be zero or the lower bound
// if an index range has been given.

module Sem_060207_arrays_008 {

	type component GeneralComp {
	}

    type integer MyArrayType1[3] (1 .. 10);

	testcase TC_Sem_060207_arrays_008() runs on GeneralComp {

        var MyArrayType1 v_array1 := {8, 1, 2}
        v_array1[1] := 10;
		if (v_array1 == { 8, 10, 2} ) {
			setverdict(pass);
		}
		else {
			setverdict(fail);
		}
	}

	control {
		execute(TC_Sem_060207_arrays_008());
	}

}
