mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-08 16:36:21 +00:00
20 lines
344 B
C
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;
|
|
}
|