You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/teststl.cpp
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1131,11 +1131,11 @@ class TestStl : public TestFixture {
1131
1131
s.templateLocation = "{file}:{line}:note:{info}";
1132
1132
1133
1133
check("int f(int i) {\n"
1134
-
" std::string s = \"abc\";\n"
1135
-
" if (i > 5)\n"
1136
-
" return 0;\n"
1137
-
" return s[i];\n"
1138
-
"}\n", s);
1134
+
" std::string s = \"abc\";\n"
1135
+
" if (i > 5)\n"
1136
+
" return 0;\n"
1137
+
" return s[i];\n"
1138
+
"}\n", s);
1139
1139
ASSERT_EQUALS("[test.cpp:5:13]: warning: Either the condition 'i>5' is redundant or 'i' can have the value 5. Expression 's[i]' causes access out of bounds. [containerOutOfBounds]\n"
1140
1140
"[test.cpp:3:11]: note: Assuming that condition 'i>5' is not redundant\n"
0 commit comments