We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 367e437 commit fac011dCopy full SHA for fac011d
1 file changed
test/cfg/std.c
@@ -38,6 +38,18 @@
38
#include <math.h>
39
#include <stddef.h>
40
41
+void test_int32_min() {
42
+ // cppcheck-suppress shiftTooManyBits ; tests that INT32_MIN is a 32-bit expression (not 64-bit expression)
43
+ int a = INT32_MIN >> 40;
44
+}
45
+
46
+void test_int64_min() {
47
+ char buf[10];
48
49
+ // cppcheck-suppress arrayIndexOutOfBounds ; tests that INT64_MIN is a signed expression
50
+ buf[100 * (int)(INT64_MIN < 0)] = 0;
51
52
53
size_t invalidFunctionArgStr_wcslen(void)
54
{
55
const wchar_t terminated0[] = L"ABCDEF49620910";
0 commit comments