Skip to content

Commit 8efa8fc

Browse files
committed
test
1 parent 4617bc2 commit 8efa8fc

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

lib/color.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ std::ostream& operator<<(std::ostream & os, Color c)
7272

7373
std::string toString(Color c)
7474
{
75+
76+
std::string st;
77+
st[0] = 'x';
78+
7579
std::ostringstream ss;
7680
ss << c;
7781
return ss.str();

lib/cppcheck.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,9 @@ unsigned int CppCheck::checkFile(const FileWithDetails& file, const std::string
888888

889889
mLogger->resetExitCode();
890890

891+
std::string str;
892+
str[0] = 'x';
893+
891894
if (Settings::terminated())
892895
return mLogger->exitcode();
893896

0 commit comments

Comments
 (0)