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 / NegSem_08020301_GeneralFormatOfImport_039.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 import clause cannot override language tag of imported module
13 ** @verdict pass reject
14 *****************************************************************/
15
16 // The following requirements are tested:
17 // Restriction g:
18 // The language specification of the import statement shall not override the language
19 // specification of the importing module.
20 // Restriction h:
21 // The language specification of the import statement shall be identical to the language
22 // specification of the source module from which definitions are imported provided
23 // a language specification is defined in the source module.
24
25 module NegSem_08020301_GeneralFormatOfImport_039 {
26 import from NegSem_08020301_GeneralFormatOfImport_039_import language "TTCN-3:2013" all;
27 type component GeneralComp {}
28
29 testcase TC_Sem_08020301_GeneralFormatOfImport_039() runs on GeneralComp {
30 if (c_test == 0) { setverdict(pass); }
31 else { setverdict(fail); }
32 }
33
34 control{
35 // testing if parameter names are imported
36 execute(TC_Sem_08020301_GeneralFormatOfImport_039());
37 }
38 }
This page took 0.031953 seconds and 5 git commands to generate.