summaryrefslogtreecommitdiffstats
path: root/memory/jemalloc/src/test/unit/a0.c
diff options
context:
space:
mode:
Diffstat (limited to 'memory/jemalloc/src/test/unit/a0.c')
-rw-r--r--memory/jemalloc/src/test/unit/a0.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/memory/jemalloc/src/test/unit/a0.c b/memory/jemalloc/src/test/unit/a0.c
new file mode 100644
index 000000000..b9ba45a3d
--- /dev/null
+++ b/memory/jemalloc/src/test/unit/a0.c
@@ -0,0 +1,19 @@
+#include "test/jemalloc_test.h"
+
+TEST_BEGIN(test_a0)
+{
+ void *p;
+
+ p = a0malloc(1);
+ assert_ptr_not_null(p, "Unexpected a0malloc() error");
+ a0dalloc(p);
+}
+TEST_END
+
+int
+main(void)
+{
+
+ return (test_no_malloc_init(
+ test_a0));
+}