Skip to content

Commit fac011d

Browse files
committed
test
1 parent 367e437 commit fac011d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/cfg/std.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@
3838
#include <math.h>
3939
#include <stddef.h>
4040

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+
4153
size_t invalidFunctionArgStr_wcslen(void)
4254
{
4355
const wchar_t terminated0[] = L"ABCDEF49620910";

0 commit comments

Comments
 (0)