From a260b5157a59a38c9d9e2bdab1abea7890862b70 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 23 Oct 2017 23:42:29 +0300 Subject: [PATCH] Initial test coverage for %zd used with scanf --- test/testio.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/testio.cpp b/test/testio.cpp index 95ce50a74..03ddb9ea8 100644 --- a/test/testio.cpp +++ b/test/testio.cpp @@ -1296,6 +1296,13 @@ private: TEST_SCANF_WARN_AKA("%zx", "size_t", "ssize_t", "signed long", "signed long long"); TEST_SCANF_WARN_AKA("%zx", "size_t", "ptrdiff_t", "signed long", "signed long long"); + TEST_SCANF_WARN("%zd", "ssize_t", "bool"); + TEST_SCANF_WARN("%zd", "ssize_t", "signed short"); + TEST_SCANF_WARN("%zd", "ssize_t", "void *"); + // TODO TEST_SCANF_WARN("%zd", "ssize_t", "size_t"); + TEST_SCANF_NOWARN("%zd", "ssize_t", "ssize_t"); + //TODO TEST_SCANF_WARN_AKA("%zd", "ssize_t", "ptrdiff_t", "signed long", "signed long long"); + TEST_SCANF_WARN("%tu", "unsigned ptrdiff_t", "bool"); TEST_SCANF_WARN("%tu", "unsigned ptrdiff_t", "char"); TEST_SCANF_WARN("%tu", "unsigned ptrdiff_t", "signed char");