Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/980709-1.c

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