diff options
Diffstat (limited to 'regress/lib/libc')
-rw-r--r-- | regress/lib/libc/ieeefp/inf/Makefile | 9 | ||||
-rw-r--r-- | regress/lib/libc/ieeefp/inf/inf.c | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/regress/lib/libc/ieeefp/inf/Makefile b/regress/lib/libc/ieeefp/inf/Makefile new file mode 100644 index 00000000000..b9a50e0ce61 --- /dev/null +++ b/regress/lib/libc/ieeefp/inf/Makefile @@ -0,0 +1,9 @@ +# $OpenBSD: Makefile,v 1.1 2002/02/16 17:22:16 pvalchev Exp $ + +PROG= inf +SRCS= inf.c + +LDADD+= -lm +DPADD+= ${LIBM} + +.include <bsd.regress.mk> diff --git a/regress/lib/libc/ieeefp/inf/inf.c b/regress/lib/libc/ieeefp/inf/inf.c new file mode 100644 index 00000000000..32f6c2ce807 --- /dev/null +++ b/regress/lib/libc/ieeefp/inf/inf.c @@ -0,0 +1,13 @@ +/* $OpenBSD: inf.c,v 1.1 2002/02/16 17:22:16 pvalchev Exp $ */ + +/* + * Peter Valchev <pvalchev@openbsd.org> Public Domain, 2002. + */ + +#include <math.h> + +int +main() { + if (isinf(HUGE_VAL)) + return 0; +} |