conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 08_modules / 0802_module_definitions_part / 080203_importing_from_modules / 08020308_compatibility_of_language_specifications_in_imports / NegSem_08020308_CompatibilityOfLanguageSpecificationsInImports_003.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.8, Verify that modules with explicit language tag cannot import from newer TTCN-3 versions
13 ** @verdict pass reject
14 *****************************************************************/
15
16 // The following requirements are tested:
17 // Restriction c:
18 // The TTCN-3 language specification in an import statement shall be lower or equal
19 // to the TTCN-3 language specification of the importing module, i.e. a TTCN-3 module
20 // can only import from earlier or same editions of TTCN-3 but not from later editions.
21
22 module NegSem_08020308_CompatibilityOfLanguageSpecificationsInImports_003 language "TTCN-3:2012" {
23
24 import from NegSem_08020308_CompatibilityOfLanguageSpecificationsInImports_003_import all;
25
26 type component GeneralComp {}
27
28 testcase TC_NegSem_08020308_CompatibilityOfLanguageSpecificationsInImports_003() runs on GeneralComp{
29 if (c_test == 0) { setverdict(pass); }
30 else { setverdict(fail); }
31 }
32
33 control{
34 // testing if parameter names are imported
35 execute(TC_NegSem_08020308_CompatibilityOfLanguageSpecificationsInImports_003());
36 }
37 }
38
This page took 0.03131 seconds and 5 git commands to generate.