[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / unwind-backchain.c
blobaffa9b2efecc2235e344d41a1b824463edf18e0b
1 /* -linux* targets have a fallback for the absence of unwind tables, thus are
2 the only ones we can guarantee backtrace returns all addresses. */
3 /* { dg-do run { target { *-*-linux* } } } */
4 /* { dg-options "-fno-asynchronous-unwind-tables" } */
6 #include <execinfo.h>
8 void
9 test_backtrace()
11 int addresses;
12 void *buffer[10];
14 addresses = backtrace(buffer, 10);
15 if(addresses != 4)
16 __builtin_abort();
19 int
20 main()
22 test_backtrace();
23 return 0;