Skip to content

Commit 01e6d9c

Browse files
Format
1 parent 6590a11 commit 01e6d9c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/teststl.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,11 +1131,11 @@ class TestStl : public TestFixture {
11311131
s.templateLocation = "{file}:{line}:note:{info}";
11321132

11331133
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);
11391139
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"
11401140
"[test.cpp:3:11]: note: Assuming that condition 'i>5' is not redundant\n"
11411141
"[test.cpp:5:13]: note: Access out of bounds\n",

0 commit comments

Comments
 (0)