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

extern double a;

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

  a = 1.0/1.0;

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