Commit | Line | Data |
---|---|---|
970ed795 | 1 | /****************************************************************************** |
d44e3c4f | 2 | * Copyright (c) 2000-2016 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 | |
d44e3c4f | 7 | * |
8 | * Contributors: | |
9 | * Balasko, Jeno | |
10 | * Raduly, Csaba | |
11 | * | |
970ed795 EL |
12 | ******************************************************************************/ |
13 | // Correct syntax but bad semantics | |
14 | ||
15 | module port_SE | |
16 | { | |
17 | type record length (10) of integer int10; | |
18 | ||
19 | type port P1 message | |
20 | { | |
21 | out integer; | |
22 | } | |
23 | ||
24 | type component C1 | |
25 | { | |
26 | port P1 p1; | |
27 | } | |
28 | ||
29 | testcase tc_isbound_const() runs on C1 | |
30 | { | |
31 | var C1 c1; | |
32 | ||
33 | if ( isvalue(p1) ) { | |
34 | setverdict(pass); | |
35 | } else { | |
36 | setverdict(fail); | |
37 | } | |
38 | } | |
39 | } |