/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:5.4.2, verify that values cannot be passed to port parameters
 ** @verdict  pass reject
 ***************************************************/

// The following requirement is tested:
// Actual parameters that are passed to formal port parameters shall be component
// ports or formal port parameters of the current scope.

module NegSem_050402_actual_parameters_099 {

    type port IntPort message {
        inout integer;
    }

    type component GeneralComp {
        port IntPort p;
	}

    function f_test(IntPort p_port) {
        p_port.stop;
    }

    testcase TC_NegSem_050402_actual_parameters_099() runs on GeneralComp {
        var integer v_val := 5;
        f_test(v_val); // tested parameter passing
        setverdict(pass);
	}

	control {
		execute(TC_NegSem_050402_actual_parameters_099());
	}
}
