/*
Copyright (C) 2007-2009, Parrot Foundation.
$Id: test_c.in 36833 2009-02-17 20:09:26Z allison $

figure out if libc has backtrace() & backtrace_symbols()
*/

#include <execinfo.h>
#include <stdlib.h>

int
main(int argc, char **argv)
{
    void *array[10];
    size_t size;
    char **strings;
    size = backtrace(array, 10);
    strings = backtrace_symbols(array, size);
    free(strings);
    return EXIT_SUCCESS;
}

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