diff --git a/cfg/std.cfg b/cfg/std.cfg
index a6fb230b9..d497eec8d 100644
--- a/cfg/std.cfg
+++ b/cfg/std.cfg
@@ -7216,6 +7216,7 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
+
diff --git a/test/cfg/std.cpp b/test/cfg/std.cpp
index 0586a5181..4d956fb2b 100644
--- a/test/cfg/std.cpp
+++ b/test/cfg/std.cpp
@@ -87,6 +87,14 @@ void uninitvar_std_ofstream_open(std::ofstream &os, const std::string &strFileNa
os.open(ptr);
}
+void nullPointer_std_filebuf_open(std::filebuf &fb, const std::string &strFileName, const char* filename, std::ios_base::openmode mode)
+{
+ // cppcheck-suppress nullPointer
+ (void)fb.open(nullptr, mode);
+ (void)fb.open(filename, mode);
+ (void)fb.open(strFileName, mode);
+}
+
void nullPointer_std_ofstream_open(std::ofstream &os, const std::string &strFileName, const char* filename, std::ios_base::openmode mode)
{
// cppcheck-suppress nullPointer