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:15.6.3, Ensure that referencing an element within a value list causes an error in the context of record of.
13 ** @verdict pass reject
14 *****************************************************************/
16 module NegSem_150603_ReferencingRecordOfAndSetElements_001 {
18 type component GeneralComp { }
20 type record of integer RoI;
21 type record of RoI RoRoI;
23 testcase TC_NegSem_150603_ReferencingRecordOfAndSetElements_001() runs on GeneralComp {
24 var template RoI m_one;
25 var template RoRoI m_two;
26 template RoRoI constraint_value := {{},{0},{0,0},{0,0,0}};
28 m_two := ( constraint_value, constraint_value ); // value list
29 m_one := m_two[0]; // shall cause an error as we access a value list
35 execute(TC_NegSem_150603_ReferencingRecordOfAndSetElements_001());