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

// The following requirement is tested:
// Assignment or list notations are used for expressions of record, set, record of, set of, array, union and anytype types.

module Sem_07_toplevel_007
{
    type component GeneralComp {
	}

    type anytype Atype;

    type record R {
        integer field1,
        charstring field2 optional
    }

    testcase TC_Sem_07_toplevel_007() runs on GeneralComp {
        var Atype v_any;
        v_any.R.field1 := 1;
        v_any.R.field2 := omit;
        if (v_any.R == { field1 := 1, field2 := omit }) { setverdict(pass); }
        else { setverdict(fail); }
	}

	control {
		execute(TC_Sem_07_toplevel_007());
	}
}