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.2, Ensure that the IUT correctly handles assignments from structures having compatible types and lengths
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
16 module Sem_060302_structured_types_002 language "TTCN-3:2010" {
18 type record RecordType {
28 type record length (1..2) of integer ShortIntegerList;
29 type record of integer IntegerList;
31 type set length (1..2) of integer ShortUnorderedIntegerList;
32 type set of integer UnorderedIntegerList;
35 type component GeneralComp {
38 testcase TC_Sem_060302_structured_types_002() runs on GeneralComp {
40 var IntegerList v_list1:={1,-};
41 var ShortIntegerList v_list2;
42 var UnorderedIntegerList v_ulist1:={1,-};
43 var ShortUnorderedIntegerList v_ulist2;
45 var integer v_matcher[2] := {1,-};
52 v_check := (v_list2[0]==1);
65 execute(TC_Sem_060302_structured_types_002());