summaryrefslogtreecommitdiff
path: root/lib/mlibc/tests/bsd/reallocarray.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/tests/bsd/reallocarray.c')
-rw-r--r--lib/mlibc/tests/bsd/reallocarray.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mlibc/tests/bsd/reallocarray.c b/lib/mlibc/tests/bsd/reallocarray.c
new file mode 100644
index 0000000..905d68d
--- /dev/null
+++ b/lib/mlibc/tests/bsd/reallocarray.c
@@ -0,0 +1,7 @@
+#include <stdlib.h>
+
+int main() {
+ void *ret = reallocarray(NULL, 69, 0xCB7);
+ free(ret);
+ return !ret;
+}