diff options
Diffstat (limited to 'tests/qstring-varargs/main.cpp')
-rw-r--r-- | tests/qstring-varargs/main.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/qstring-varargs/main.cpp b/tests/qstring-varargs/main.cpp new file mode 100644 index 00000000..cdef4edf --- /dev/null +++ b/tests/qstring-varargs/main.cpp @@ -0,0 +1,18 @@ +#include <QtCore/QString> + +void simple_printf(const char* ...) +{ +} + + +void test() +{ + QString s; + printf("%s", s); // Warn + simple_printf("%s", s); // Warn + const char *foo = "f"; + printf("%s", foo); + + QByteArray b; + printf("%s", b); // Warn +} |