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.2.7, ensure that the two dimensional array type referencing is correctly handled
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15 module Sem_060207_arrays_013 {
17 // The following requirement is tested:
18 // Individual elements of multi-dimensional arrays can be accessed by repeated use of
19 // the index notation.
20 // For assigning values to multi-dimensional arrays, each dimension that is assigned
21 // shall resolve to a set of values enclosed in curly braces.
23 type component GeneralComp {
27 type integer MyArrayType1[2][3] (1 .. 10);
30 testcase TC_Sem_060207_arrays_013() runs on GeneralComp {
32 var MyArrayType1 v_array1 := {{8, 10, 9},
35 if (v_array1[1][1]==3) {
45 execute(TC_Sem_060207_arrays_013());