summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/980709-1.c
blob: 54b3bbc7cf9f1a481638421eb5970756addf9f8e (plain)
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 ();
}