Lines Matching refs:calloc
92 char *ptr = (char *)calloc(1, alloc_len); in TEST()
108 char *ptr = reinterpret_cast<char*>(calloc(1, alloc_len)); in TEST()
122 ASSERT_EQ(nullptr, calloc(-1, 100)); in TEST()
129 ASSERT_EQ(nullptr, calloc(1, SIZE_MAX)); in TEST()
132 ASSERT_EQ(nullptr, calloc(SIZE_MAX, SIZE_MAX)); in TEST()
135 ASSERT_EQ(nullptr, calloc(2, SIZE_MAX)); in TEST()
138 ASSERT_EQ(nullptr, calloc(SIZE_MAX, 2)); in TEST()
280 char *ptr = (char *)calloc(1, 100); in TEST()
295 char *ptr = (char *)calloc(1, 200); in TEST()
310 char *ptr = (char *)calloc(1, 200); in TEST()
548 uint8_t* zero_mem = reinterpret_cast<uint8_t*>(calloc(1, size)); in TEST()
565 void* p = calloc(0, 0); in TEST()
571 void* p = calloc(0, 1); in TEST()
577 void* p = calloc(1, 0); in TEST()
1191 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return calloc(bytes, 1) != nullptr; }), in TEST()
1193 EXPECT_EXIT(CheckAllocationFunction([](size_t bytes) { return calloc(1, bytes) != nullptr; }), in TEST()