1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* { dg-xfail-if "Can not call system libm.a with -msoft-float" { powerpc-*-aix* rs6000-*-aix* } { "-msoft-float" } { "" } } */ #include <math.h> main() { volatile double a; double c; a = 32.0; c = pow(a, 1.0/3.0); if (c + 0.1 > 3.174802 && c - 0.1 < 3.174802) exit (0); else abort (); }