/*****************************************************************
 ** @author   STF 433
 ** @version  0.0.1
 ** @purpose  1:19.10, Ensure that the IUT correctly handles return statements.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/
module Sem_1910_return_statement_001 {

    type component GeneralComp {
    }

    function f_verdict_return() runs on GeneralComp return verdicttype {
        setverdict(pass);
        return getverdict;
    }


    testcase TC_Sem_1910_return_statement_001 () runs on GeneralComp {
        if (f_verdict_return() != pass) {
            setverdict(fail, "function return value wrong");
        }
        if (getverdict != pass) {
            setverdict(fail, "component verdict not set");
        }

    }


    control{

        execute(TC_Sem_1910_return_statement_001());

    }

}
