blob: 6c67dadd31fac84bc6384f094aa6883f23ebbd78 [file] [log] [blame]
// Test zero-size allocations -- shouldn't cause division by zero, that kind
// of thing.
#include <stdlib.h>
int main(void)
{
free(malloc(0));
free(malloc(0));
free(malloc(0));
free(malloc(0));
free(malloc(0));
free(malloc(0));
free(malloc(0));
free(malloc(0));
free(malloc(0));
free(malloc(0));
return 0;
}