Commit b09af8d8 authored by zeiss's avatar zeiss
Browse files

No commit message

No commit message
parent 4f040312
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
/*****************************************************************
 ** @author   STF 409
 ** @version  $Rev: 150 $
 ** @purpose  1:15.8, Ensure that a value can be assigned to a template(value) variable.
 ** @purpose  1:15.8, Ensure that a value can be assigned to a template(present) variable.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

module Sem_1508_TemplateRestrictions_004 {
module Sem_1508_TemplateRestrictions_006 {

type component GeneralComp { }

testcase TC_Sem_1508_TemplateRestrictions_004() runs on GeneralComp {
	var template(value) integer v_value;
testcase TC_Sem_1508_TemplateRestrictions_006() runs on GeneralComp {
	var template(present) integer v_present;
	
	v_value := 20
	v_present := 20
	
	if (valueof(v_value) == 20) {
	if (valueof(v_present) == 20) {
		setverdict(pass);
	} else {
		setverdict(fail);
@@ -22,7 +22,7 @@ testcase TC_Sem_1508_TemplateRestrictions_004() runs on GeneralComp {
}

control{
    execute(TC_Sem_1508_TemplateRestrictions_004());
    execute(TC_Sem_1508_TemplateRestrictions_006());
}