2 /* test of plausible behaviour with malloc and stupid args */
12 printf("malloc(0) = 0x%lx\n", (unsigned long)p
);
16 printf("malloc(-1) = 0x%lx\n", (unsigned long)p
);
20 printf("calloc(0,1) = 0x%lx\n", (unsigned long)p
);
24 printf("calloc(0,-1) = 0x%lx\n", (unsigned long)p
);
27 // We no longer get a warning with this due to the calloc overflow checking
28 // done for bug 149878. It's no great loss, it's extremely unlikely to
31 printf("calloc(-1,-1) = 0x%lx\n", (unsigned long)p
);