* tests/test-aligned_alloc.c (main): Clarify that we test a zero size.
* tests/test-posix_memalign.c (main): Likewise.
+2024-11-04 Bruno Haible <bruno@clisp.org>
+
+ tests: Add comments.
+ * tests/test-aligned_alloc.c (main): Clarify that we test a zero size.
+ * tests/test-posix_memalign.c (main): Likewise.
+
2024-11-04 Bruno Haible <bruno@clisp.org>
malloc, calloc, realloc tests: Work around clang optimization bug.
#if HAVE_ALIGNED_ALLOC
static size_t sizes[] =
{
- 13, 8, 17, 450, 320, 1, 99, 4, 15, 16,
- 2, 76, 37, 127, 2406, 641, 5781, 0
+ 13, 8, 17, 450, 320, 1, 99, 4, 15, 16, 2, 76, 37, 127, 2406, 641, 5781,
+ /* Test also a zero size. */
+ 0
};
void *volatile aligned2_blocks[SIZEOF (sizes)];
void *volatile aligned4_blocks[SIZEOF (sizes)];
#if HAVE_POSIX_MEMALIGN
static size_t sizes[] =
{
- 13, 8, 17, 450, 320, 1, 99, 4, 15, 16,
- 2, 76, 37, 127, 2406, 641, 5781, 0
+ 13, 8, 17, 450, 320, 1, 99, 4, 15, 16, 2, 76, 37, 127, 2406, 641, 5781,
+ /* Test also a zero size. */
+ 0
};
void *aligned2_blocks[SIZEOF (sizes)];
void *aligned4_blocks[SIZEOF (sizes)];