Changeset View
Changeset View
Standalone View
Standalone View
tests/manual/test.cpp
Context not available. | |||||
19 | #include <cstdio> | 19 | #include <cstdio> | ||
---|---|---|---|---|---|
20 | #include <cstdlib> | 20 | #include <cstdlib> | ||
21 | 21 | | |||
22 | #include "util/config.h" | ||||
23 | | ||||
22 | #if defined(_ISOC11_SOURCE) | 24 | #if defined(_ISOC11_SOURCE) | ||
23 | # define HAVE_ALIGNED_ALLOC 1 | 25 | # define HAVE_ALIGNED_ALLOC 1 | ||
24 | #else | 26 | #else | ||
Context not available. | |||||
82 | 84 | | |||
83 | buf = calloc(5, 5); | 85 | buf = calloc(5, 5); | ||
84 | printf("calloc: %p\n", buf); | 86 | printf("calloc: %p\n", buf); | ||
87 | #if defined(HAVE_CFREE) | ||||
85 | cfree(buf); | 88 | cfree(buf); | ||
89 | #else | ||||
90 | free(buf); | ||||
91 | #endif | ||||
86 | 92 | | |||
87 | #if HAVE_ALIGNED_ALLOC | 93 | #if HAVE_ALIGNED_ALLOC | ||
88 | buf = aligned_alloc(16, 160); | 94 | buf = aligned_alloc(16, 160); | ||
Context not available. |