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
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:8.2.3.5, Ensure that the constant is not visible after import with except.
13 ** @verdict pass reject
14 *****************************************************************/
16 // The following requirements are tested:
18 // In the set of except statements for an all import, only one except statement per
19 // kind of definition (i.e. for a group, type, etc.) is allowed.
21 module NegSem_08020305_ImportingAllDefinitionsOfAModule_002 {
23 import from NegSem_08020305_ImportingAllDefinitionsOfAModule_002_import all except {
24 // everything is excluded again
34 const c_test2; // error: const present more than once in the except part
37 type component GeneralComp {}
39 testcase TC_NegSem_08020305_ImportingAllDefinitionsOfAModule_002() runs on GeneralComp {
40 if (c_myconst == 43532) {
48 execute(TC_NegSem_08020305_ImportingAllDefinitionsOfAModule_002());