aboutsummaryrefslogtreecommitdiff
path: root/tests/test-strerror.c
blob: 44709524b85c3171a87d997ff03cc4d497b315ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <libunwind.h>
#include <stdio.h>

int
main (int argc, char **argv __attribute__((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;
}