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.1, Verify that information about type of constant is imported together with constant
13 ** @verdict pass accept, ttcn3verdict:pass
14 *****************************************************************/
16 // The following requirements are tested:
18 // A definition is imported together with all information of referenced definitions that
19 // are necessary for the usage of the imported definition, independent of the visibility
20 // of the referenced definitions.
22 // Possible referenced definitions for a signature: parameter types
24 module Sem_08020301_GeneralFormatOfImport_016 {
26 import from Sem_08020301_GeneralFormatOfImport_016_import { const c_test };
28 type component GeneralComp {}
30 testcase TC_Sem_08020301_GeneralFormatOfImport_016() runs on GeneralComp {
31 // type compatibility is checked during assignment: for this check, the type information for c_test
32 // should be available at this point to compile the script correctly
33 var integer v_test := c_test;
34 if (v_test == 0) { setverdict(pass); }
35 else { setverdict(fail); }
39 // testing if parameter names are imported
40 execute(TC_Sem_08020301_GeneralFormatOfImport_016());