diff --git a/cfg/std.cfg b/cfg/std.cfg
index fa16b5c1dbb..40230062111 100644
--- a/cfg/std.cfg
+++ b/cfg/std.cfg
@@ -6498,6 +6498,17 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
+
+
+
+
+
+ false
+
+
+
+
+
@@ -6814,7 +6825,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
false
-
+
arg1
@@ -8998,7 +9009,7 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
+ Values are in alignment with posix.cfg -->
diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp
index 766c3b08efb..0e6dfedaea7 100644
--- a/test/cfg/std.cpp
+++ b/test/cfg/std.cpp
@@ -27,6 +27,7 @@
#include
#include
#include
+#include
#include
#include
#ifndef __STDC_NO_THREADS__
@@ -54,6 +55,16 @@
#include
#endif
+bool ignoredReturnValue_std_filesystem_exists(const std::filesystem::path &path, std::error_code& ec)
+{
+ // cppcheck-suppress ignoredReturnValue
+ std::filesystem::exists(path);
+ // cppcheck-suppress ignoredReturnValue
+ std::filesystem::exists(path, ec);
+ const bool b {std::filesystem::exists(path)};
+ return b && std::filesystem::exists(path, ec);
+}
+
// https://en.cppreference.com/w/cpp/io/manip/quoted
void uninitvar_std_quoted(std::stringstream &ss, const std::string &input, const char delim, const char escape)
{
@@ -4956,4 +4967,4 @@ void eraseIteratorOutOfBounds_std_deque(std::deque& x) // #8690
{
// cppcheck-suppress eraseIteratorOutOfBounds
x.erase(x.end());
-}
\ No newline at end of file
+}