/*****************************************************************
 ** @author   STF 572
 ** @version  0.0.1
 ** @purpose  1:21.3.10, call operation returning a structured value containing a port element
 ** @verdict  pass reject
 *****************************************************************/

// The following requirements are tested:
// The return value of the function or altstep invoked from a call test component operation neither
// be of a port, default or timer type nor should contain a direct or indirect element or field of
// a port, default or timer type.

module NegSem_210310_call_test_component_operation_015 {
    type port P message {
	    inout integer;
	}
	type record R {
        P field1
	}
    type component GeneralComp {}

	function f() runs on GeneralComp return R {
		setverdict(pass);
		return { field1 := null };
	}

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

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