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; }