aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gm2/pimlib/run/pass/limittests.c
blob: 92a79ae34165bc665ceaa3712843afe9753bdd70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <math.h>
#include <stdio.h>

int main ()
{
  double a = 1.0/0.0;

  if (! isfinite (a))
    printf ("infinity detected\n");

  a = 1.0/1.0;

  if (isfinite (a))
    printf ("number is now finite\n");
  return 0;
}