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:7.1.2, Ensure that the list operator on record of is evaluated correctly.
13 ** @verdict pass accept, ttcn3verdict:pass
14 *****************************************************************/
15 module Sem_070102_ListOperator_006 {
17 type component GeneralComp {
20 type record of integer IntegerArray;
22 testcase TC_Sem_070102_ListOperator_006() runs on GeneralComp {
23 var IntegerArray v1 := {0, 1, 2};
24 var IntegerArray v2 := {3, 4, 5};
25 var IntegerArray v3 := {6};
27 var IntegerArray v_i := v1 & v2 & v3;
29 //var IntegerArray v_i := {0, 1, 2} & {3, 4, 5} & {6}; cannot determine type
31 var IntegerArray v_reference := {0, 1, 2, 3, 4, 5, 6};
33 if (v_i == v_reference) {
41 execute(TC_Sem_070102_ListOperator_006());