diff --git a/cfg/std.cfg b/cfg/std.cfg index dfb4acddcf4..6cd0c371a5e 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -3,16 +3,16 @@ - - + + - - - + + + - - + + diff --git a/test/cfg/std.c b/test/cfg/std.c index b96f1bf8317..adc147c2333 100644 --- a/test/cfg/std.c +++ b/test/cfg/std.c @@ -38,6 +38,17 @@ #include #include +void test_int32_min() { + // cppcheck-suppress shiftNegativeLHS + // cppcheck-suppress shiftTooManyBits ; tests that INT32_MIN is a 32-bit expression (not 64-bit expression) + (void)(INT32_MIN >> 40); +} + +void test_int64_min() { + // cppcheck-suppress compareValueOutOfTypeRangeError ; tests that INT64_MIN is a signed expression + if (INT64_MIN < 0) {} +} + size_t invalidFunctionArgStr_wcslen(void) { const wchar_t terminated0[] = L"ABCDEF49620910";