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:16.1.3, Ensure that the IUT recognizes external functions
13 ** @verdict pass accept, ttcn3verdict:pass
14 ** @configuration external_functions
15 ***************************************************/
16 module Sem_160103_external_functions_002 {
18 type record MyRecord {
24 type port TestPort message {
26 } with {extension "internal"}
28 type component GeneralComp {
33 external function xf_Sem_160103_external_functions_002(inout integer p_in) return integer;
35 testcase TC_Sem_160103_external_functions_002 () runs on GeneralComp {
36 var integer v_input := 5;
39 v_result := xf_Sem_160103_external_functions_002(v_input);
40 if(v_result==6) { setverdict(pass) }
41 else { setverdict(fail) }
46 execute(TC_Sem_160103_external_functions_002());