Commit | Line | Data |
---|---|---|
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 | ******************************************************************************/ | |
8 | module Tcompoundif | |
9 | { | |
10 | ||
11 | type record comp { | |
12 | integer f1, | |
13 | integer f2 | |
14 | } | |
15 | ||
16 | function func(comp p_comp) return boolean | |
17 | { | |
18 | return true; | |
19 | } | |
20 | ||
21 | control | |
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 | } |