Home | History | Annotate | Download | only in tests

Lines Matching refs:malloc

16   void *res = malloc/**/(size); break_optimization(0); return res;}
76 int *a = (int*)malloc(100 * sizeof(int));
80 int *r = (int*)malloc(10);
234 EXPECT_EQ(0, malloc(size));
235 EXPECT_EQ(0, malloc(~Ident(0)));
283 EXPECT_DEATH(Ident((char*)malloc(size))[-1] = 0, buff);
320 free(Ident(malloc(size)));
340 int *ptr = (int*)malloc(sizeof(int) * kMinElem);
348 // Realloc pointer returned by malloc(0).
349 int *ptr2 = Ident((int*)malloc(0));
357 // Test that malloc(0) and similar functions don't return NULL.
358 void *ptr = Ident(malloc(0));
382 char *array = Ident((char*)malloc(kArraySize));
396 int *x = (int*)malloc(100 * sizeof(int));
404 "ERROR: AddressSanitizer: attempting free.*not malloc");
408 int *x = (int*)malloc(100 * sizeof(int));
643 char *a = Ident((char*)malloc(Ident(12)));
700 char *s = Ident((char*)malloc(size));
738 char *s = Ident((char*)malloc(size));
743 // TODO(samsonov): Add a test with malloc(0)
879 char *x = Ident((char*)malloc(8));
1078 // It doesn't work on Android, as calls to new/delete go through malloc/free.
1091 EXPECT_DEATH(delete (Ident((int*)malloc(2 * sizeof(int)))),
1092 MismatchStr("malloc vs operator delete"));
1095 EXPECT_DEATH(delete [] (Ident((int*)malloc(2 * sizeof(int)))),
1096 MismatchStr("malloc vs operator delete \\[\\]"));
1138 printf("%p\n", malloc(size));
1166 char *x = (char*)malloc(kAllocSize);