aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/lto/pr56168_0.c
blob: 13f768e7e7662c4f7dd2271b5044ae7090003eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-lto-do run } */
/* { dg-lto-options { { -flto -O -ffast-math -fno-builtin } } } */

extern double pow(double, double);
extern void abort (void);
volatile double x = 1.0;
int main(int argc, char **argv)
{
  double d1 = x;
  double d2 = pow(d1, 1.0 / 3.0);
  double d3 = d1 * d1;
  if (d3 != 1.0 || d2 != 0.0)
    abort ();
  return 0;
}