view gcc/testsuite/gcc.dg/lto/pr56168_0.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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;
}