/****************************************************************************** * Copyright (c) 2000-2016 Ericsson Telecom AB * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Adrien Kirjak – initial implementation * ** @version 0.0.1 ** @purpose 1:5.4.2, verify that in value parameters can be used as inout formal value parameters of altsteps ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ // The following requirement is tested: // Actual parameters that are passed to inout formal value parameters shall be variables // or formal value parameters (of in, inout or out parameterization) or references to // elements of variables or formal value parameters of structured types. module Sem_050402_actual_parameters_046 { type component GeneralComp { timer t := 0.0; } altstep a_test(inout integer p_val) runs on GeneralComp { []t.timeout { if (p_val == 6) { setverdict(pass); } else { setverdict(fail); } } } function f_caller(in integer p_val) runs on GeneralComp{ t.start; a_test(p_val); // tested parameter passing } testcase TC_Sem_050402_actual_parameters_046() runs on GeneralComp { f_caller(6); // this parameter passing is not a subject of the test } control { execute(TC_Sem_050402_actual_parameters_046()); } }