diff --git a/cfg/qt.cfg b/cfg/qt.cfg
index b1af63e99..cc41e5ab4 100644
--- a/cfg/qt.cfg
+++ b/cfg/qt.cfg
@@ -78,6 +78,16 @@
+
+
+ false
+
+
+
+
+
+
+
diff --git a/test/testio.cpp b/test/testio.cpp
index 50806066e..18c3126c6 100644
--- a/test/testio.cpp
+++ b/test/testio.cpp
@@ -2828,6 +2828,12 @@ private:
" string.sprintf(\"%d\", f);\n"
"}", false, false, Settings::Win32A);
ASSERT_EQUALS("[test.cpp:3]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'float'.\n", errout.str());
+
+ check("void foo(float f) {\n"
+ " QString string;\n"
+ " string = QString::asprintf(\"%d\", f);\n"
+ "}", false, false, Settings::Win32A);
+ ASSERT_EQUALS("[test.cpp:3]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'float'.\n", errout.str());
}
void testTernary() { // ticket #6182