https://bugs.kde.org/show_bug.cgi?id=407589

--- Comment #8 from Paul Floyd <pa...@free.fr> ---
Finally, I did start writing some regression tests, for instance

// example from here https://en.cppreference.com/w/c/memory/aligned_alloc

#include <stdlib.h>
#include <stdio.h>

int main(void)
{
    int *p1 = malloc(10*sizeof *p1);
    printf("default-aligned addr:   %p\n", (void*)p1);
    free(p1);

    int *p2 = aligned_alloc(1024, 1024*sizeof *p2);
    printf("1024-byte aligned addr: %p\n", (void*)p2);
    if ((size_t)p2 % 1024U)
        printf("p2 not aligned!\n");
    free(p2);
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to