Home | History | Annotate | Download | only in tests

Lines Matching full:malloc

31 #include <malloc.h>
83 void *res = malloc/**/(size); break_optimization(0); return res;}
150 // fprintf(stderr, "malloc:\n");
151 int *a = (int*)malloc(100 * sizeof(int));
156 int *r = (int*)malloc(10);
292 void *p = malloc(alloc_size);
362 EXPECT_EQ(0, malloc(size));
363 EXPECT_EQ(0, malloc(~Ident(0)));
413 EXPECT_DEATH(Ident((char*)malloc(size))[-1] = 0, buff);
427 // (the libSystem malloc() allows allocating up to 2300 megabytes without
453 free(Ident(malloc(size)));
472 int *ptr = (int*)malloc(sizeof(int) * kMinElem);
487 char *array = Ident((char*)malloc(kArraySize));
501 int *x = (int*)malloc(100 * sizeof(int));
509 "ERROR: AddressSanitizer attempting free.*not malloc");
513 int *x = (int*)malloc(100 * sizeof(int));
726 char *a = Ident((char*)malloc(Ident(12)));
760 T *array = Ident((T*)malloc(size));
817 T *src = Ident((T*)malloc(size));
818 T *dest = Ident((T*)malloc(size));
860 T *big_src = Ident((T*)malloc(size * 2));
861 T *big_dest = Ident((T*)malloc(size * 2));
931 char *heap_string = Ident((char*)malloc(length + 1));
948 char *s = Ident((char*)malloc(size));
998 char *to = Ident((char*)malloc(to_size));
999 char *from = Ident((char*)malloc(from_size));
1021 char *to = Ident((char*)malloc(to_size));
1023 char *from = Ident((char*)malloc(from_size));
1262 char *str = Ident((char*)malloc(size));
1417 char *array = Ident((char*)malloc(size));
1424 char *src = Ident((char*)malloc(size));
1425 char *dst = Ident((char*)malloc(size));
1441 char *s = Ident((char*)malloc(size));
1446 // TODO(samsonov): Add a test with malloc(0)
1547 char *x = Ident((char*)malloc(8));
1802 printf("%p\n", malloc(size));
1830 char *x = (char*)malloc(kAllocSize);
1915 pointers[i] = malloc(i + 1);
1931 // Call malloc in the child process to make sure we won't deadlock.
1932 void *ptr = malloc(42);
1942 // Incorrect implementation of force_lock and force_unlock in our malloc zone
1962 void *mem = malloc(10);