Initial test coverage for %zd used with scanf

This commit is contained in:
Dmitry-Me 2017-10-23 23:42:29 +03:00
parent 481ab0f930
commit a260b5157a
1 changed files with 7 additions and 0 deletions

View File

@ -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");