diff --git a/cfg/std.cfg b/cfg/std.cfg index f6ed7951c..6fa534cde 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -7914,6 +7914,17 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init + + + false + + + + + + + + diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp index bdbf46298..a87193215 100644 --- a/test/cfg/std.cpp +++ b/test/cfg/std.cpp @@ -28,6 +28,15 @@ #include #include #include +#include + +std::bitset<10> std_bitset_test_ignoredReturnValue() +{ + std::bitset<10> b1("1111010000"); + // cppcheck-suppress ignoredReturnValue + b1.test(2); + return b1; +} void valid_code() {