conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 11_variables / 1102_template_variables / Syn_1102_TemplateVars_001.ttcn
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
7 *
8 * Contributors:
9 * Adrien Kirjak – initial implementation
10 *
11 ** @version 0.0.1
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;
18 }
19
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 := ?;
24 }
25 }
26
27 function f_Syn_1102_TemplateVars_001() runs on GeneralComp {
28 var template integer v_i := *;
29 }
30
31 testcase TC_Syn_1102_TemplateVars_001() runs on GeneralComp {
32 var template integer v_i := (1, 2, 3);
33
34 setverdict(pass);
35 }
36
37 control {
38 var template integer v_i := (1..2);
39
40 execute(TC_Syn_1102_TemplateVars_001());
41 }
42 }
This page took 0.033343 seconds and 5 git commands to generate.