1
0
mirror of https://github.com/ioacademy-jikim/debugging synced 2025-06-08 16:36:21 +00:00
2015-12-13 22:34:58 +09:00

20 lines
344 B
C

// 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;
}