From 20eaf3fcca6357ece509128baddd7a539a7f9999 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 20 Nov 2017 22:34:31 +0300 Subject: [PATCH] Tests for intmax_t passed as %ld and %lld into scanf --- test/testio.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testio.cpp b/test/testio.cpp index 9af1de280..ddacbc57b 100644 --- a/test/testio.cpp +++ b/test/testio.cpp @@ -1074,6 +1074,7 @@ private: TEST_SCANF_WARN("%ld","long","unsigned long"); TEST_SCANF_WARN("%ld","long","void *"); TEST_SCANF_WARN_AKA("%ld","long","size_t","unsigned long","unsigned long long"); + TEST_SCANF_WARN_AKA("%ld","long","intmax_t", "signed long", "signed long long"); TEST_SCANF_WARN_AKA("%ld","long","std::ptrdiff_t", "signed long", "signed long long"); TEST_SCANF_WARN_AKA_WIN64("%ld","long","std::intptr_t", "signed long long"); TEST_SCANF_WARN_AKA("%ld","long","std::uintptr_t", "unsigned long", "unsigned long long"); @@ -1148,6 +1149,7 @@ private: TEST_SCANF_WARN("%lld","long long","unsigned long long"); TEST_SCANF_WARN("%lld","long long","void *"); TEST_SCANF_WARN_AKA("%lld","long long","size_t", "unsigned long", "unsigned long long"); + TEST_SCANF_WARN_AKA("%lld","long long","intmax_t", "signed long", "signed long long"); TEST_SCANF_WARN_AKA("%lld","long long","std::ptrdiff_t", "signed long", "signed long long"); TEST_SCANF_WARN_AKA_WIN32("%lld","long long","std::intptr_t", "signed long");