diff --git a/cfg/std.cfg b/cfg/std.cfg
index 7624ba91e..3b153f6a3 100644
--- a/cfg/std.cfg
+++ b/cfg/std.cfg
@@ -7914,11 +7914,11 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
-
-
-
-
-
+
+
+
+
+
false
@@ -7926,6 +7926,17 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
+
+
+
+
+
+ false
+
+
+
+
+
false
diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp
index 3cb17d928..0b4a49cb2 100644
--- a/test/cfg/std.cpp
+++ b/test/cfg/std.cpp
@@ -62,6 +62,22 @@ std::bitset<10> std_bitset_any_ignoredReturnValue()
return b1;
}
+std::bitset<10> std_bitset_size_ignoredReturnValue()
+{
+ std::bitset<10> b1("1111010000");
+ // cppcheck-suppress ignoredReturnValue
+ b1.size();
+ return b1;
+}
+
+std::bitset<10> std_bitset_count_ignoredReturnValue()
+{
+ std::bitset<10> b1("1111010000");
+ // cppcheck-suppress ignoredReturnValue
+ b1.count();
+ return b1;
+}
+
void valid_code()
{
std::vector vecInt{0, 1, 2};