"Fossies" - the Fresh Open Source Software Archive

Member "redis-7.0.5/deps/jemalloc/test/unit/a0.c" (21 Sep 2022, 229 Bytes) of package /linux/misc/redis-7.0.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #include "test/jemalloc_test.h"
    2 
    3 TEST_BEGIN(test_a0) {
    4     void *p;
    5 
    6     p = a0malloc(1);
    7     assert_ptr_not_null(p, "Unexpected a0malloc() error");
    8     a0dalloc(p);
    9 }
   10 TEST_END
   11 
   12 int
   13 main(void) {
   14     return test_no_malloc_init(
   15         test_a0);
   16 }