/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:5.4.2, verify that multiple actual parameters of list notation can be skipped
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// The following requirement is tested:
// The actual parameter of a formal parameter with default value can be skipped by using
// dash "-" as actual parameter.

module Sem_050402_actual_parameters_176 {

    type component GeneralComp {
	}

    function f_test (integer p_val1, integer p_val2 := 20, integer p_val3, integer p_val4 := 40, integer p_val5) {
        if ( match(p_val1, 1) and match(p_val2, 20) and match(p_val3, 3) and match(p_val4, 40) and match(p_val5, 5)) { setverdict(pass); }
        else { setverdict(fail); }
    }

    testcase TC_Sem_050402_actual_parameters_176() runs on GeneralComp {
        f_test(1, -, 3, -, 5);
	}

	control {
		execute(TC_Sem_050402_actual_parameters_176());
	}
}
