/***************************************************
 ** @author   STF T003
 ** @version  0.0.1
 ** @purpose  1:16.1.2, Ensure that the IUT recognizes predefined functions and correctly evaluates them (as specified by Annex C)
 ** @verdict  pass reject
 ***************************************************/

// The following requirement is tested:
// C4.2. In addition to the general error causes in clause 16.1.2, error causes are:
// the template passed to the invalue parameter is not of type bitstring, hexstring, octetstring, charstring, universal charstring,record of, set of, or array.

module NegSem_160102_predefined_functions_049 {

    type component GeneralComp {
	}


    testcase TC_NegSem_160102_predefined_functions_049() runs on GeneralComp {
	var universal charstring v_i;
    template float MyFloat := 1.0;

 	v_i:=substr(MyFloat, 0, 1);		// error: in_par template is a float
 	setverdict(pass);
	}

	control {
		execute(TC_NegSem_160102_predefined_functions_049());
	}
}