7 #include <fiu-control.h>
9 void func1(int should_fail
)
16 nptrs = backtrace(buffer, 100);
17 backtrace_symbols_fd(buffer, nptrs, 1);
20 failed
= fiu_fail("fp-1") != 0;
21 assert(failed
== should_fail
);
24 void func2(int should_fail
)
35 r
= fiu_enable_stack_by_name("fp-1", 1, NULL
, 0, "func2", -1);
37 printf("NOTE: fiu_enable_stack_by_name() failed, "