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

// The following requirement is tested:
// 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_007 {

	type component GeneralComp {
	}

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

	testcase TC_Sem_060207_arrays_007() runs on GeneralComp {

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

	control {
		execute(TC_Sem_060207_arrays_007());
	}

}
