1 /* $NetBSD: infinity.c,v 1.4 2004/03/05 01:00:53 kleink Exp $ */
4 * This file is in the Public Domain.
10 * Check that HUGE_VAL{,FL} (alias __infinity{,fl}) really is infinite.
11 * Alternatively, check that isinf() minimally works.
18 main(int argc
, char **argv
)
21 /* HUGE_VAL is meant to be an infinity. */
22 assert(isinf(HUGE_VAL
));
24 /* HUGE_VALF is the float analog of HUGE_VAL. */
25 assert(isinf(HUGE_VALF
));
27 /* HUGE_VALL is the long double analog of HUGE_VAL. */
28 assert(isinf(HUGE_VALL
));