summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2002-02-16 17:22:17 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2002-02-16 17:22:17 +0000
commit2e41ff4e1d60c25dd2ea2ee197105a9d5dca4e5f (patch)
treeab04a78631b658f6abfbc2f8f10f86a64f1300c2
parentfa26f6107a75e0cbe457393b1afc427a9ebdeea6 (diff)
Simple test for isinf(3) and HUGE_VAL; ok art
-rw-r--r--regress/lib/libc/ieeefp/inf/Makefile9
-rw-r--r--regress/lib/libc/ieeefp/inf/inf.c13
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;
+}