aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr41094.c
blob: 9219a1741a37f6ed0422388ceb73d6160563607f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { 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()
{
  double r = foo ();
  if (r != 2.0)
    abort ();
  return 0;
}