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:11.2, Define template variables in different scopes
13 ** @verdict pass accept, noexecution
14 ***************************************************/
15 module Syn_1102_TemplateVars_001 {
16 type component GeneralComp {
17 var template integer vc_i1 := omit;
20 altstep a_Syn_1102_TemplateVars_001() runs on GeneralComp {
21 var integer v_j := 12;
22 [] any timer.timeout {
23 var template integer v_k := ?;
27 function f_Syn_1102_TemplateVars_001() runs on GeneralComp {
28 var template integer v_i := *;
31 testcase TC_Syn_1102_TemplateVars_001() runs on GeneralComp {
32 var template integer v_i := (1, 2, 3);
38 var template integer v_i := (1..2);
40 execute(TC_Syn_1102_TemplateVars_001());