13 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 3)
14 void a (int, ...) __attribute__((optimize(0)));
15 void b (void) __attribute__((optimize(0)));
16 void c (void) __attribute__((optimize(0)));
25 n = unw_backtrace(v, 20);
27 /* Check that the number of addresses given by unw_backtrace() looks
28 * reasonable. If the compiler inlined everything, then this check will also
34 for (i = 0; i < n; ++i)
35 printf ("[%d] %p\n", i, v[i]);
56 a (2, 11, 13, 17, 23);
67 main (int argc, char **argv UNUSED)
76 fprintf (stderr, "FAILURE: expected deeper backtrace.\n");
81 printf ("SUCCESS.\n");