Commit 481b7389 authored by zeiss's avatar zeiss
Browse files

No commit message

No commit message
parent 68420fef
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
/*****************************************************************
 ** @author   STF 409
 ** @version  $Rev: 150 $
 ** @purpose  1:15.6.1, Ensure that the referencing of individual string elements inside templates or template fields is forbidden.
 ** @verdict  pass reject
 *****************************************************************/

module NegSem_150601_ReferencingIndividualStringElements_001 {

function f_testFunction() {
	var template charstring m_char1 := "MYCHAR1";
	var template charstring m_char2;
	
	// illegal acchess. Instead, substr should be used.	
	m_char2 := m_char1[1];
}

}
 No newline at end of file