Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Mar 13, 2024
1 parent 8ef9ea1 commit 59584fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/teststl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2207,13 +2207,13 @@ class TestStl : public TestFixture {
" auto it = std::find(v.begin(), v.end(), 0);\n"
" if (it != N::v.end()) {}\n"
"}\n");
ASSERT_EQUALS("", errout.str());
ASSERT_EQUALS("", errout_str());

check("void f(void* p) {\n" // #12445
" std::vector<int>&v = *(std::vector<int>*)(p);\n"
" v.erase(v.begin(), v.end());\n"
"}\n");
ASSERT_EQUALS("", errout.str());
ASSERT_EQUALS("", errout_str());
}

void eraseIteratorOutOfBounds() {
Expand Down
2 changes: 1 addition & 1 deletion test/testunusedvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2910,7 +2910,7 @@ class TestUnusedVar : public TestFixture {
" for (int i = 0; i < 10; )\n"
" a[i++] = 0;\n"
"}");
ASSERT_EQUALS("[test.cpp:5]: (style) Variable 'a[i++]' is assigned a value that is never used.\n", errout.str());
ASSERT_EQUALS("[test.cpp:5]: (style) Variable 'a[i++]' is assigned a value that is never used.\n", errout_str());
}

void localvar10() {
Expand Down

0 comments on commit 59584fa

Please sign in to comment.