conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 08_modules / 0802_module_definitions_part / 080203_importing_from_modules / 08020301_general_format_of_import / Sem_08020301_GeneralFormatOfImport_010.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:8.2.3.1, Verify that signature is imported together with parameter names
13 ** @verdict pass accept, ttcn3verdict:pass
14 *****************************************************************/
15
16 // The following requirements are tested:
17 // Restriction c:
18 // A definition is imported together with its name and all local definitions.
19 // Restriction d:
20 // A definition is imported together with all information of referenced definitions that
21 // are necessary for the usage of the imported definition, independent of the visibility
22 // of the referenced definitions.
23 // Table 8:
24 // Signature
25
26 module Sem_08020301_GeneralFormatOfImport_010 {
27
28 import from Sem_08020301_GeneralFormatOfImport_010_import { signature Signature1 };
29
30 type component GeneralComp {}
31
32 // type compatibility is checked during parameter passing: for this check, type
33 // information for the signature parameters should be available at this point
34 // to compile the script correctly
35 template Signature1 s_test := {
36 p_param1 := 1 // testing signature parameter name
37 }
38
39 testcase TC_Sem_08020301_GeneralFormatOfImport_010() runs on GeneralComp {
40 log (s_test);
41 setverdict(pass);
42 }
43
44 control{
45 execute(TC_Sem_08020301_GeneralFormatOfImport_010());
46 }
47 }
48
This page took 0.03866 seconds and 5 git commands to generate.