summaryrefslogtreecommitdiff
path: root/test/malloc/tst-asprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/malloc/tst-asprintf.c')
-rw-r--r--test/malloc/tst-asprintf.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/test/malloc/tst-asprintf.c b/test/malloc/tst-asprintf.c
deleted file mode 100644
index d4c3f7676..000000000
--- a/test/malloc/tst-asprintf.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <malloc.h>
-
-static void my_stats(void)
-{
- malloc_stats();
- fprintf(stderr, "\n");
-}
-
-int main(int argc, char *argv[])
-{
- char *a, *b;
-
- my_stats();
- asprintf(&b, "asdsadasd %ssdf\n", "AAAA");
- my_stats();
- asprintf(&a, "asdsadasd %ssdf\n", "AAAA");
- my_stats();
- free(a);
- free(b);
- my_stats();
-
- return 0;
-}