/*****************************************************************
 ** @author   STF 409
 ** @version  0.0.1
 ** @purpose  1:8.2.5, Ensure that explicitly defined public definitions (in this case a sample constant) are visible when imported through a group.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

module Sem_080205_VisibilityOfDefinitions_003 {

import from Sem_080205_VisibilityOfDefinitions_003_import {
	group CONST_GROUP;
};

type component GeneralComp {}

testcase TC_Sem_080205_VisibilityOfDefinitions_003() runs on GeneralComp {
	if (c_myconst == 32532) { // c_myconst shall be visible on import when it is explicitly set to public.
		setverdict(pass);
	} else {
		setverdict(fail);
	}
}

control{
    execute(TC_Sem_080205_VisibilityOfDefinitions_003());
}
}

module Sem_080205_VisibilityOfDefinitions_003_import {
	group CONST_GROUP {
		public const integer c_myconst := 32532;
	}
}