/***************************************************
 ** @author   STF 409
 ** @version  0.0.1
 ** @purpose  1:5.2.2, Ensure that the IUT correctly handles the uniqueness of variable names in its scope
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/
module Sem_050202_Uniqueness_002 {
	type component GeneralComp {
		const integer cl_int := 0;
	}

	function f_funcScope() {
		const integer cl_int := 1;
	}

	testcase TC_Sem_050202_Uniqueness_002() runs on GeneralComp {
		f_funcScope();
        if (cl_int == 0) { // component value
            setverdict(pass);
        } else {
            setverdict(fail);
        }
	}
	control {
		execute(TC_Sem_050202_Uniqueness_002());
	}
}
