aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test_show.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/test_show.c')
-rw-r--r--tests/src/test_show.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/src/test_show.c b/tests/src/test_show.c
new file mode 100644
index 0000000..e5e7dca
--- /dev/null
+++ b/tests/src/test_show.c
@@ -0,0 +1,25 @@
+/**
+ * @file test_show.c
+ * @brief Test show_alloc_mem — links directly against libft_malloc.
+ */
+
+#include "malloc.h"
+
+int
+main (void)
+{
+ void *a = malloc (42);
+ void *b = malloc (100);
+ void *c = malloc (500);
+ void *d = malloc (2000);
+ (void)a;
+ (void)b;
+ (void)c;
+ (void)d;
+ show_alloc_mem ();
+ free (a);
+ free (b);
+ free (c);
+ free (d);
+ return (0);
+}