diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index 4fab6bb6957..9dd3ff3ae76 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -25,6 +25,7 @@ #define __STDC_WANT_LIB_EXT1__ 1 #include #include +#include #include #include #include @@ -4936,3 +4937,9 @@ void unique_lock_const_ref(std::mutex& m) { std::unique_lock lock(m); } + +void eraseIteratorOutOfBounds_std_deque(std::deque& x) // #8690 +{ + // cppcheck-suppress eraseIteratorOutOfBounds + x.erase(x.end()); +} \ No newline at end of file