1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-18 05:47:39 +01:00
libunwind-eh_elf/tests/test-strerror.c
David Mosberger-Tang f176ad6fc6 Bring git v0.98.5 tree in sync with released v0.98.5.
Sadly, the conversion from Bitkeeper -> CVS -> git wasn't perfect.  Or
so it seems.
2006-07-25 21:32:28 -06:00

17 lines
264 B
C

#include <libunwind.h>
#include <stdio.h>
int
main (int argc, char **argv)
{
int i, verbose = argc > 1;
const char *msg;
for (i = 0; i < 16; ++i)
{
msg = unw_strerror (-i);
if (verbose)
printf ("%6d -> %s\n", -i, msg);
}
return 0;
}