/*****************************************************************
 ** @author   STF 409
 ** @version  0.0.1
 ** @purpose  1:7.1.1, Ensure that the addition of two integer variables is evaluated correctly when the expression contains a negative value.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

module Sem_070101_ArithmeticOperators_003 {

type component GeneralComp {
}

testcase TC_Sem_070101_ArithmeticOperators_003() runs on GeneralComp {
	var integer v_i := -10;
	var integer v_j := 2;
	var integer v_result := v_i + v_j;

	if (v_result == -8) {
		setverdict(pass);
	} else {
		setverdict(fail);
	}
}

control{
    execute(TC_Sem_070101_ArithmeticOperators_003());
}

}
