Skip to content

Commit 685c7b5

Browse files
Add test for #8690 (#5999)
1 parent 9e7337b commit 685c7b5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/cfg/std.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#define __STDC_WANT_LIB_EXT1__ 1
2626
#include <ctime>
2727
#include <cwchar>
28+
#include <deque>
2829
#include <exception>
2930
#include <fstream>
3031
#include <functional>
@@ -4950,3 +4951,9 @@ void unique_lock_const_ref(std::mutex& m)
49504951
{
49514952
std::unique_lock lock(m);
49524953
}
4954+
4955+
void eraseIteratorOutOfBounds_std_deque(std::deque<int>& x) // #8690
4956+
{
4957+
// cppcheck-suppress eraseIteratorOutOfBounds
4958+
x.erase(x.end());
4959+
}

0 commit comments

Comments
 (0)