view gcc/testsuite/gcc.dg/torture/pr41094.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 1830386684a0
line wrap: on
line source

/* { dg-do run } */
/* { dg-options "-ffast-math" } */

#include <math.h>

extern void abort (void);

double foo(void)
{
  double x = -4.0;
  return pow (x * x, 0.25);
}

int main()
{
  if (foo() != 2.0)
    abort ();
  return 0;
}