/*****************************************************************
 ** @author   STF 572
 ** @version  0.0.1
 ** @purpose  1:21.3.10, repeated call of a non-alive component
 ** @verdict  pass reject
 *****************************************************************/

// The following requirements are tested:
// If the called component is not created alive and has already been started or called once or if
// it has been killed, additional call operations are not allowed.

module NegSem_210310_call_test_component_operation_003 {

    type component GeneralComp {}

	function f() runs on GeneralComp {
		setverdict(pass);
	}

    testcase TC_NegSem_210310_call_test_component_operation_003() runs on GeneralComp system GeneralComp {
        var GeneralComp v_ptc := GeneralComp.create;
        v_ptc.call(f());
		v_ptc.call(f()); // error expected
		setverdict(pass);
    }

    control {
        execute(TC_NegSem_210310_call_test_component_operation_003(), 5.0);
    }
}