]> git.cameronkatri.com Git - mandoc.git/blob - test-recallocarray.c
Revert part of the previous diff to fix a regression (another endless loop)
[mandoc.git] / test-recallocarray.c
1 #include <stdlib.h>
2
3 int
4 main(void)
5 {
6 void *p;
7
8 if ((p = calloc(2, 2)) == NULL)
9 return 1;
10 return !recallocarray(p, 2, 3, 2);
11 }