/*****************************************************************
 ** @author   STF 521
 ** @version  0.0.1
 ** @purpose  1:5.4.1.1, Verify that altsteps with timer parameters cannot be used in component.start operation
 ** @verdict  pass reject
 *****************************************************************/

// The following requirement is tested:
// Only function and altstep definitions may have formal timer parameters, with the exception of functions or
// altsteps started as test component behaviour (see clause 21.3.2).

module NegSem_05040101_parameters_of_kind_value_023 {

    type component C {
    }

    altstep f_test(inout timer p_tmr) runs on C {
        [] p_tmr.timeout {
			setverdict(pass);
		}
    }

    testcase TC_NegSem_05040101_parameters_of_kind_value_023() runs on C system C {
    	timer t_tmr := 0.1;
        var C v_ptc := C.create;
        t_tmr.start;
        v_ptc.start(f_test(t_tmr));
        v_ptc.done;
    }

    control {
        execute(TC_NegSem_05040101_parameters_of_kind_value_023());
    }
}