/***************************************************
 ** @author   STF 470
 ** @version  0.0.1
 ** @purpose  1:15.10, check that runtime error occurs if valueof is applied to uninitialized template
 ** @verdict  pass reject
 ***************************************************/

// The following requirement is tested:
// The template shall be completely initialized and resolve to a specific value.

module NegSem_1510_ValueOfOperation_005 {

type component GeneralComp { }

testcase TC_NegSem_1510_ValueOfOperation_005() runs on GeneralComp {
	var template integer v_test;

	var integer v_second := valueof(v_test);

	// if we get here, something must be wrong as valueof on v_test shall cause an error
	// as it is not a template.
	setverdict(fail);
}

control{
    execute(TC_NegSem_1510_ValueOfOperation_005());
}

}