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_007.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, Verify that an error is generated when a signature port definition contains multiple map clauses
13 ** @verdict pass reject
14 *****************************************************************/
15
16 // The following requirements are tested:
17 // Restriction b:
18 // At most one map parameter list should be defined for a port type.
19
20 module NegSem_060209_CommunicationPortTypes_007 {
21
22 type record MyType1 {
23 integer f1,
24 charstring f2
25 }
26
27 type record MyType2 {
28 integer g1,
29 charstring g2
30 }
31
32 type record MyType3 {
33 boolean h1,
34 MyType3 h2 optional
35 }
36
37 signature S() return integer;
38
39 type port MyMessagePortTypeOne procedure {
40 //address MyType1;
41 in S;
42 map param (in integer p1, inout MyType2 p2);
43 unmap param (in MyType3 p1, out integer p2);
44 map param (in integer p1, inout MyType2 p2); // more than 1 map clause
45 } with {extension "internal"}
46
47 type component GeneralComp {
48 port MyMessagePortTypeOne pt_myPort;
49 }
50
51 testcase TC_NegSem_060209_CommunicationPortTypes_007() runs on GeneralComp system GeneralComp {
52 setverdict(fail);
53 }
54
55 control{
56 execute(TC_NegSem_060209_CommunicationPortTypes_007());
57 }
58
59 }
This page took 0.032336 seconds and 5 git commands to generate.