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:22.2.2, insufficient array dimension of variable in index redirection
13 ** @verdict pass reject
14 *****************************************************************/
16 // The following requirements are tested:
17 // If the index redirection is used for multi-dimensional port arrays, the size of the
18 // integer array or record of integer type shall exactly be the same as the dimension of
19 // the respective array, and its type shall allow storing the highest index (from all
20 // dimensions) of the array.
22 module NegSem_220202_ReceiveOperation_020 {
25 } with {extension "internal"}
27 type component GeneralComp {
31 testcase TC_NegSem_220202_ReceiveOperation_020() runs on GeneralComp {
32 var integer v_indices[2];
34 any from p.receive(integer:?) -> @index v_indices;
39 execute(TC_NegSem_220202_ReceiveOperation_020(), 5.0);