1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:5.4.2, verify that component ports can be passed to port parameters
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
16 // The following requirement is tested:
17 // Actual parameters that are passed to formal port parameters shall be component
18 // ports or formal port parameters of the current scope.
20 module Sem_050402_actual_parameters_160 {
22 type port IntPort message {
24 } with {extension "internal"}
26 type component GeneralComp {
30 function f_test(IntPort p_port) {
34 testcase TC_Sem_050402_actual_parameters_160() runs on GeneralComp {
35 f_test(p); // tested parameter passing
38 //if (p.checkstate("Stopped")) { setverdict(pass); }
39 //else { setverdict(fail); }
43 execute(TC_Sem_050402_actual_parameters_160());