/***************************************************
 ** @author   STF 521
 ** @version  0.0.1
 ** @purpose  1:7, compound expression as an operand of set 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_009
{
    type component GeneralComp {
	}

    type set SI
    {
		integer	field1,
		integer	field2
	};

    testcase TC_Sem_07_toplevel_009() runs on GeneralComp {
        var SI v_set;
        v_set.field1 := 1;
        v_set.field2 := 2;
        if (match(v_set,{ field1 := 1, field2 := 2 })) { setverdict(pass); }
        else { setverdict(fail); }
	}

	control {
		execute(TC_Sem_07_toplevel_009());
	}
}
