diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index e05d43f6f92..4fab6bb6957 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -4925,6 +4925,13 @@ std::string global_scope_std() // #12355 return ss.str(); } +::std::size_t global_scope_std2() // #12378 +{ + std::vector<::std::size_t> v; + // cppcheck-suppress containerOutOfBounds + return v.front(); +} + void unique_lock_const_ref(std::mutex& m) { std::unique_lock lock(m);