conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 08_modules / 0802_module_definitions_part / 080203_importing_from_modules / 08020305_importing_all_definitions_of_a_module / NegSem_08020305_ImportingAllDefinitionsOfAModule_001.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.5, Ensure that the constant is not visible after import with except.
13 ** @verdict pass reject
14 *****************************************************************/
15
16 module NegSem_08020305_ImportingAllDefinitionsOfAModule_001 {
17
18 import from NegSem_08020305_ImportingAllDefinitionsOfAModule_001_import all except {
19 // everything is excluded again
20 group all;
21 type all;
22 template all;
23 const all;
24 testcase all;
25 altstep all;
26 function all;
27 signature all;
28 modulepar all;
29 };
30
31 type component GeneralComp {}
32
33 testcase TC_NegSem_08020305_ImportingAllDefinitionsOfAModule_001() runs on GeneralComp {
34 if (c_myconst == 43532) { // should not be visible due to the const all exception
35 setverdict(fail);
36 } else {
37 setverdict(pass);
38 }
39 }
40
41 control{
42 execute(TC_NegSem_08020305_ImportingAllDefinitionsOfAModule_001());
43 }
44 }
This page took 0.032091 seconds and 5 git commands to generate.