/***************************************************
 ** @author   STF 572
 ** @version  0.0.1
 ** @purpose  1:16.1, Ensure that the IUT correctly handles function definitions
 ** @verdict  pass reject
 ***************************************************/
module NegSem_1601_toplevel_008 {


type component GeneralComp {
}

function f_test ( integer p_integer := 0 ) mtc GeneralComp return integer {

 return p_integer+1;
}

testcase TC_NegSem_1601_toplevel_008 () mtc GeneralComp {

 	if(f_test(1)==2) {
        setverdict(pass);
    }
    else {
        setverdict(fail);
    }

}


control{

	f_test(1);	//attempt to invoke a function with mtc clause
    execute(TC_NegSem_1601_toplevel_008());

}

}
