aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-recallocarray.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-recallocarray.c')
-rw-r--r--test-recallocarray.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-recallocarray.c b/test-recallocarray.c
new file mode 100644
index 00000000..e0c60d71
--- /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);
+}