conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 06_types_and_values / 0602_structured_types_and_values / 060209_comm_port_types / NegSem_060209_CommunicationPortTypes_002.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:6.2.9, Ensure that restriction of port definitions are appropriately handles
13 ** @verdict pass reject
14 *****************************************************************/
15
16 module NegSem_060209_CommunicationPortTypes_002 {
17
18 type record MyType1 {
19 integer f1,
20 charstring f2
21 }
22
23 type record MyType2 {
24 integer g1,
25 charstring g2
26 }
27
28 type record MyType3 {
29 boolean h1,
30 MyType3 h2 optional
31 }
32
33 type port MyMessagePortTypeOne message {
34 // address MyType1;
35 inout integer;
36 map param (in integer p1, inout MyType2 p2);
37 map param (in integer p1, out MyType2 p2); //more than one map parameter type
38 unmap param (in MyType3 p1, out integer p2);
39 } with {extension "internal"}
40
41 type component GeneralComp {
42 port MyMessagePortTypeOne pt_myPort;
43 }
44
45 testcase TC_NegSem_060209_CommunicationPortTypes_002() runs on GeneralComp system GeneralComp {
46 setverdict(fail);
47 }
48
49 control{
50 execute(TC_NegSem_060209_CommunicationPortTypes_002());
51 }
52
53 }
This page took 0.036239 seconds and 5 git commands to generate.