/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:7, compound expression as an operand of array type
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// The following requirement is tested:
// Compound expressions are used for expressions of array, record, record of and
// set of types.

module Sem_07_toplevel_002
{
    type component GeneralComp {
	}

    testcase TC_Sem_07_toplevel_002() runs on GeneralComp {
        var integer v_arr[2];
        v_arr[0] := 1;
        v_arr[1] := 2;
        if (v_arr == { 1, 2 }) { setverdict(pass); }
        else { setverdict(fail); }
	}

	control {
		execute(TC_Sem_07_toplevel_002());
	}
}
