1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-28 10:07:37 +01:00
libunwind-eh_elf/tests/test-strerror.c

19 lines
293 B
C
Raw Normal View History

2012-09-19 12:50:59 +02:00
#include "compiler.h"
#include <libunwind.h>
#include <stdio.h>
int
2012-09-19 12:50:59 +02:00
main (int argc, char **argv UNUSED)
{
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;
}