summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr41094.c
blob: 2a4e9616cbfad648715c6b6ed902940d8299f979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { 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;
}