/*****************************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:22.2.2, value redirect assignment in receive any message statement
 ** @verdict  pass reject
 *****************************************************************/

// The following requirements are tested:
// AddressRef for retrieving the sending entity shall be of type address, component or
// of the type provided in the address declaration of the port type of the port instance
// referenced in the receive operation.

module NegSem_220202_ReceiveOperation_012 {

	type port P message {
		inout integer;
	}

    type component GeneralComp
	{
		port P p;
	}

    testcase TC_NegSem_220202_ReceiveOperation_012() runs on GeneralComp {
        var integer v_val;
        p.send(10);
        p.receive -> value v_val;
        setverdict(pass);
    }

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