1 extern void abort (void);
3 void test(double f
, double i
)
5 if (f
== __builtin_inf())
7 if (f
== -__builtin_inf())
9 if (i
== -__builtin_inf())
11 if (i
!= __builtin_inf())
14 if (f
>= __builtin_inf())
16 if (f
> __builtin_inf())
18 if (i
> __builtin_inf())
20 if (f
<= -__builtin_inf())
22 if (f
< -__builtin_inf())
26 void testf(float f
, float i
)
28 if (f
== __builtin_inff())
30 if (f
== -__builtin_inff())
32 if (i
== -__builtin_inff())
34 if (i
!= __builtin_inff())
37 if (f
>= __builtin_inff())
39 if (f
> __builtin_inff())
41 if (i
> __builtin_inff())
43 if (f
<= -__builtin_inff())
45 if (f
< -__builtin_inff())
49 void testl(long double f
, long double i
)
51 if (f
== __builtin_infl())
53 if (f
== -__builtin_infl())
55 if (i
== -__builtin_infl())
57 if (i
!= __builtin_infl())
60 if (f
>= __builtin_infl())
62 if (f
> __builtin_infl())
64 if (i
> __builtin_infl())
66 if (f
<= -__builtin_infl())
68 if (f
< -__builtin_infl())
74 test (34.0, __builtin_inf());
75 testf (34.0f
, __builtin_inff());
76 testf (34.0l, __builtin_infl());