/*****************************************************************
 ** @author   STF 572
 ** @version  0.0.1
 ** @purpose  1:21.3.10, call operation with a value clause calling a function with no return value
 ** @verdict  pass reject
 *****************************************************************/

// The following requirements are tested:
// The variable in the value clause shall be compatible with the return value of the invoked function.

module NegSem_210310_call_test_component_operation_021 {

    type component GeneralComp {}

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

    testcase TC_NegSem_210310_call_test_component_operation_021() runs on GeneralComp system GeneralComp {
        var GeneralComp v_ptc := GeneralComp.create;
		var charstring v_str;
        v_ptc.call(f()) -> value v_str;
		setverdict(pass);
    }

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