/*****************************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:21.3.7, partially initialized array in any from ComponentArrayRef.done
 ** @verdict  pass reject
 *****************************************************************/

// The following requirements are tested:
// The ComponentArrayRef shall be a reference to a completely initialized component array.

module NegSem_210307_done_operation_010 {

    type component GeneralComp {}

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

    testcase TC_NegSem_210307_done_operation_010() runs on GeneralComp system GeneralComp {
        var GeneralComp v_ptcs[2];
        var verdicttype v_verdict;
        v_ptcs[0] := GeneralComp.create;
        v_ptcs[0].start(f());
		alt {
			[] any from v_ptcs.done {
                setverdict(pass);
            }
		}
    }

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