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.1.1, verify that referencing omitted record on the right hand of an assignment is not allowed
13 ** @verdict pass reject
14 ***************************************************/
16 // The following requirement is tested:
17 // Referencing a subfield of an uninitialized or omitted record field or value on the right
18 // hand side of an assignment shall cause an error.
20 module NegSem_06020101_ReferencingRecordFields_004 {
22 type component GeneralComp {
29 charstring field2 optional
32 testcase TC_NegSem_06020101_ReferencingRecordFields_004() runs on GeneralComp {
35 v_rec.field2 := "abc";
36 if (v_rec.field1.subfield1 == 5) {
44 execute(TC_NegSem_06020101_ReferencingRecordFields_004());