Lines Matching refs:calloc
78 char *ptr = (char *)calloc(1, alloc_len); in TEST()
90 ASSERT_EQ(nullptr, calloc(-1, 100)); in TEST()
97 ASSERT_EQ(nullptr, calloc(1, SIZE_MAX)); in TEST()
100 ASSERT_EQ(nullptr, calloc(SIZE_MAX, SIZE_MAX)); in TEST()
103 ASSERT_EQ(nullptr, calloc(2, SIZE_MAX)); in TEST()
106 ASSERT_EQ(nullptr, calloc(SIZE_MAX, 2)); in TEST()
248 char *ptr = (char *)calloc(1, 100); in TEST()
263 char *ptr = (char *)calloc(1, 200); in TEST()
278 char *ptr = (char *)calloc(1, 200); in TEST()
516 uint8_t* zero_mem = reinterpret_cast<uint8_t*>(calloc(1, size)); in TEST()
533 void* p = calloc(0, 0); in TEST()
539 void* p = calloc(0, 1); in TEST()
545 void* p = calloc(1, 0); in TEST()
1021 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return calloc(bytes, 1) != nullptr; }), in TEST()
1023 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return calloc(1, bytes) != nullptr; }), in TEST()