aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/div-double-1.c
blob: f290ab06782185cd2bdc103c404ae0d03fbff8cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do run } */
/* { dg-options "-O2 -ffinite-math-only" } */
/* { dg-require-effective-target double64plus } */

extern void abort (void);

volatile double a = 2.002083e-146;
volatile double b;

int
main()
{
  b = 1. / a;

  if (b != (1. / 2.002083e-146))
    abort ();
  return 0;
}