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, index notation applied to omitted array field on left hand side of assignment
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
16 // The following requirement is tested:
17 // All elements in an array value that are not set explicitly are undefined.
18 // When referencing an element of an uninitialized array value or field or
19 // omitted field on the left hand side of an assignment, the rules for record
20 // of values specified in 6.2.3 apply.
22 module Sem_060207_arrays_011 {
24 type component GeneralComp {
28 integer field1[3] optional
31 testcase TC_Sem_060207_arrays_011() runs on GeneralComp {
33 var R v_rec := { field1 := omit };
36 if (not isbound(v_rec.field1[0]) and not isbound(v_rec.field1[1]) and
37 v_rec.field1[2] == 3) {
46 execute(TC_Sem_060207_arrays_011());