diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx index d239b5c30..454b2c6c5 100644 --- a/Tests/Complex/Executable/complex.cxx +++ b/Tests/Complex/Executable/complex.cxx @@ -23,6 +23,7 @@ void ForceStringUse() std::string x(5,'x'); char buff[5]; x.copy(buff, 1, 0); + x[0] = 'a'; std::string::size_type pos = 0; x.replace(pos, pos, pos, 'x'); std::string copy = cachetest; diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index d239b5c30..454b2c6c5 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -23,6 +23,7 @@ void ForceStringUse() std::string x(5,'x'); char buff[5]; x.copy(buff, 1, 0); + x[0] = 'a'; std::string::size_type pos = 0; x.replace(pos, pos, pos, 'x'); std::string copy = cachetest; diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx index d239b5c30..454b2c6c5 100644 --- a/Tests/ComplexRelativePaths/Executable/complex.cxx +++ b/Tests/ComplexRelativePaths/Executable/complex.cxx @@ -23,6 +23,7 @@ void ForceStringUse() std::string x(5,'x'); char buff[5]; x.copy(buff, 1, 0); + x[0] = 'a'; std::string::size_type pos = 0; x.replace(pos, pos, pos, 'x'); std::string copy = cachetest;