/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:5.4.2, verify that actual parameters override default values
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// The following requirement is tested:
// When a formal parameter has been defined with a default value or template,
// respectively, then it is not necessary to provide an actual parameter.

module Sem_050402_actual_parameters_162 {

    type component GeneralComp {
	}

    function f_test(integer p_val := 5) {
        if (p_val != 5) { setverdict(pass); }
        else { setverdict(fail); }
    }

    testcase TC_Sem_050402_actual_parameters_162() runs on GeneralComp {
        f_test(0); // tested parameter passing
	}

	control {
		execute(TC_Sem_050402_actual_parameters_162());
	}
}
