diff --git a/cfg/std.cfg b/cfg/std.cfg
index 319545556..d498bfca3 100644
--- a/cfg/std.cfg
+++ b/cfg/std.cfg
@@ -7634,6 +7634,22 @@ 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 a206b701a..bc71d7a2d 100644
--- a/test/cfg/std.cpp
+++ b/test/cfg/std.cpp
@@ -37,6 +37,7 @@
#include
#include
#include
+#include
int zerodiv_ldexp()
{
@@ -3012,6 +3013,13 @@ void uninitvar_copy_n(const std::vector& v)
std::copy_n(v.begin(), -1, dst);
}
+void uninitvar_iota(std::vector& v)
+{
+ int i;
+ // cppcheck-suppress uninitvar
+ std::iota(v.begin(), v.end(), i);
+}
+
void uninitvar_putc(void)
{
int c;