/*
Copyright (C) 2003-2009, Parrot Foundation.
$Id: test_c.in 37201 2009-03-08 12:07:48Z fperrad $

test for memalign function
*/

#include <@malloc_header@>
#include <stdio.h>

int
main(int argc, char **argv)
{
    void *ptr = memalign(256, 17);
    puts(ptr && ((@ptrcast@)ptr & 0xff) == 0 ? "ok" : "nix");
    return 0;
}

/*
 * Local variables:
 *   c-file-style: "parrot"
 * End:
 * vim: expandtab shiftwidth=4:
 */
