/*****************************************************************
 ** @author   STF 451
 ** @version  0.0.1
 ** @purpose  1:7.1.3, Ensure that the equals operator on records is evaluated correctly.
 ** @verdict  pass reject
 *****************************************************************/

module NegSem_070103_RelationalOperators_001 {

type component GeneralComp {
}

 type set IntegerSet {
  integer a1 optional,
  integer a2 optional,
  integer a3 optional
 };

testcase TC_NegSem_070103_RelationalOperators_001() runs on GeneralComp {
	const IntegerSet c_set := {a1:=omit,a2:=2,a3:=omit};

	if ( c_set.a1 == omit ) {	//omit is neither a value nor a field reference
		setverdict(pass);
	} else {
		setverdict(fail);
	}
}

control{
    execute(TC_NegSem_070103_RelationalOperators_001());
}

}
