Lines Matching full:malloc
2 /* Test for correct functioning of the --malloc-fill and --free-fill
3 flags. Needs --malloc-fill=0x55 and --free-fill=0x77. */
23 fprintf(stderr, "test simple malloc/free:\n");
25 a = malloc(10 * sizeof(int)); assert(a);
26 TEST(a[4], 0x55555555, "malloc-filled");
34 r = malloc(30 * sizeof(int)); assert(r);
35 TEST(r[25], 0x55555555, "malloc-filled");
42 TEST( r[35], 0x55555555, "malloc-filled");
49 r = malloc(30 * sizeof(int)); assert(r);
50 TEST(r[25], 0x55555555, "malloc-filled");