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 ** @desc Test cases for clause 5.2 Scope rules
13 ** @purpose 1:5.3, Ensure that declarations are in the allowed ordering
14 ** @verdict pass reject
15 ***************************************************/
16 module NegSem_0503_Ordering_003 {
18 type component GeneralComp {
19 var integer vc_component := 0;
22 function f_function() runs on GeneralComp {
23 var integer v_function;
25 var integer v_function_2 := 0; // declaration has to go before other statements
28 testcase TC_NegSem_0503_Ordering_003() runs on GeneralComp {
30 var integer v_statement := 0;
31 if (v_statement == 0) {
32 var integer v_nested_statement := 0;
40 var integer v_control := 0;
41 execute(TC_NegSem_0503_Ordering_003());