aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr28796-1.c
blob: a762becdafb3005123288cce08ced365f671d839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do link } */
/* { dg-options "-ffinite-math-only" } */

float f;

int main()
{
  if (__builtin_isunordered (f, f) != 0)
    link_error ();
  if (__builtin_isnan (f) != 0)
    link_error ();
  if (__builtin_finite (f) != 1)
    link_error ();
  if (f != f)
    link_error ();
  return 0;
}