diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-07-31 19:17:54 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-07-31 19:17:54 +0000 |
| commit | 75b6c55cb02aaa5d40a725b90ffb672a4c25e2ee (patch) | |
| tree | 64b1aaf4aa206822fce9515a2b064662d04ef5b4 /test-recallocarray.c | |
| parent | 7ad21139cd51f34b1749abea843f7f513b4a6410 (diff) | |
Notes
Diffstat (limited to 'test-recallocarray.c')
| -rw-r--r-- | test-recallocarray.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test-recallocarray.c b/test-recallocarray.c new file mode 100644 index 000000000000..e0c60d7118f8 --- /dev/null +++ b/test-recallocarray.c @@ -0,0 +1,11 @@ +#include <stdlib.h> + +int +main(void) +{ + void *p; + + if ((p = calloc(2, 2)) == NULL) + return 1; + return !recallocarray(p, 2, 3, 2); +} |
