Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / compileonly / compoundif / Tcompoundif.ttcn
CommitLineData
970ed795 1/******************************************************************************
3abe9331 2 * Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
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 ******************************************************************************/
8module Tcompoundif
9{
10
11type record comp {
12 integer f1,
13 integer f2
14}
15
16function func(comp p_comp) return boolean
17{
18 return true;
19}
20
21control
22{
23 if(func({1, 2})) {
24 log("OK");
25 }
26
27 while(func({1, 2})) {
28 log("OK");
29 }
30
31 do {
32 log("OK");
33 } while(func({1, 2}));
34
35 for(var integer i:=0; func({1, i}); i:=i+1) {
36 log("OK");
37 }
38
39 alt {
40 [func({1, 2})] any timer.timeout {}
41 }
42}
43
44}
This page took 0.026612 seconds and 5 git commands to generate.