Skip to content

Commit

Permalink
Add test for #8690 (#5999)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Feb 19, 2024
1 parent 9e7337b commit 685c7b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/cfg/std.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define __STDC_WANT_LIB_EXT1__ 1
#include <ctime>
#include <cwchar>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
Expand Down Expand Up @@ -4950,3 +4951,9 @@ void unique_lock_const_ref(std::mutex& m)
{
std::unique_lock lock(m);
}

void eraseIteratorOutOfBounds_std_deque(std::deque<int>& x) // #8690
{
// cppcheck-suppress eraseIteratorOutOfBounds
x.erase(x.end());
}

0 comments on commit 685c7b5

Please sign in to comment.