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:6.3.3, Ensure that the IUT correctly handles assignments from structures having compatible components
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
16 module Sem_060303_component_types_001 {
18 type integer ConstrainedInteger(0..10);
20 type component TestCaseComp {
21 const integer c_integer:=2;
22 const ConstrainedInteger c_constrained:=2;
25 type component FunctionComp {
26 const integer c_integer:=2;
27 const ConstrainedInteger c_constrained:=2;
30 function f_testFunction(integer p_arg) runs on FunctionComp return integer {
33 v_result:=p_arg*c_integer*c_constrained;
37 testcase TC_Sem_060303_component_types_001() runs on TestCaseComp {
41 if ( f_testFunction(v_int)==4 ) {
50 execute(TC_Sem_060303_component_types_001());