summaryrefslogtreecommitdiff
path: root/tests/test-aligned_alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* malloc-gnu-tests, etc.: use volatile for clangPaul Eggert2021-04-201-6/+6
| | | | | | | | | | | | | | | In some more test locations, store the result of malloc etc. into a volatile pointer so that clang doesn’t optimize away the malloc and thus bypass the test. This fixes a malloc-gnu test failure on macOS 11.2.3 with clang 12.0.0 on ARM. * tests/test-alloca-opt.c (do_allocation): * tests/test-malloc-gnu.c (main): * tests/test-malloca.c (do_allocation): * tests/test-realloc-gnu.c (main): * tests/test-reallocarray.c (main): * tests/test-aligned-malloc.c (main): * tests/test-aligned_alloc.c (main): Store malloc etc. results into a volatile pointer.
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* aligned_alloc: Add tests.Bruno Haible2020-11-041-0/+97
* tests/test-aligned_alloc.c: New file. * modules/aligned_alloc-tests: New file.