summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authorpvalchev <>2002-02-16 17:22:16 +0000
committerpvalchev <>2002-02-16 17:22:16 +0000
commitb3ff0a63e902869f22f7320ad0c423a8cc55f40f (patch)
treee4bb5fd8715e15b28a8bf97231995d49a29ce830 /src/regress/lib
parent4c6a4314034909514be76e4f7f380acc6ea72bb5 (diff)
downloadopenbsd-b3ff0a63e902869f22f7320ad0c423a8cc55f40f.tar.gz
openbsd-b3ff0a63e902869f22f7320ad0c423a8cc55f40f.tar.bz2
openbsd-b3ff0a63e902869f22f7320ad0c423a8cc55f40f.zip
Simple test for isinf(3) and HUGE_VAL; ok art
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libc/ieeefp/inf/Makefile9
-rw-r--r--src/regress/lib/libc/ieeefp/inf/inf.c13
2 files changed, 22 insertions, 0 deletions
diff --git a/src/regress/lib/libc/ieeefp/inf/Makefile b/src/regress/lib/libc/ieeefp/inf/Makefile
new file mode 100644
index 0000000000..b9a50e0ce6
--- /dev/null
+++ b/src/regress/lib/libc/ieeefp/inf/Makefile
@@ -0,0 +1,9 @@
1# $OpenBSD: Makefile,v 1.1 2002/02/16 17:22:16 pvalchev Exp $
2
3PROG= inf
4SRCS= inf.c
5
6LDADD+= -lm
7DPADD+= ${LIBM}
8
9.include <bsd.regress.mk>
diff --git a/src/regress/lib/libc/ieeefp/inf/inf.c b/src/regress/lib/libc/ieeefp/inf/inf.c
new file mode 100644
index 0000000000..32f6c2ce80
--- /dev/null
+++ b/src/regress/lib/libc/ieeefp/inf/inf.c
@@ -0,0 +1,13 @@
1/* $OpenBSD: inf.c,v 1.1 2002/02/16 17:22:16 pvalchev Exp $ */
2
3/*
4 * Peter Valchev <pvalchev@openbsd.org> Public Domain, 2002.
5 */
6
7#include <math.h>
8
9int
10main() {
11 if (isinf(HUGE_VAL))
12 return 0;
13}