/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:5.4.1.1, verify that function definition can contain in, out and inout value formal parameters
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// The following requirement is tested:
// TTCN 3 supports value parameterization according to the following rules:
// - the language elements template, testcase, altstep and function support dynamic value
// parameterization (i.e. this parameterization shall be resolved at runtime). Value formal
// parameters may be in, inout or out parameters. The default for value formal parameters is
// in parameterization which may optionally be denoted by the keyword in. Using of inout or out
// kind of parameterization shall be specified by the keywords inout or out respectively.

module Sem_05040101_parameters_of_kind_value_007 {

	type component GeneralComp {
	}

    function f(integer p_int1, in integer p_int2, out integer p_int3, inout integer p_int4){
        setverdict(pass);
    }

	testcase TC_Sem_05040101_parameters_of_kind_value_007() runs on GeneralComp {
        var integer v_int1, v_int2 := 0;
        f(1, 2, v_int1, v_int2);
	}

	control{
		execute(TC_Sem_05040101_parameters_of_kind_value_007());
	}
}
