diff options
author | pvalchev <> | 2002-02-16 17:22:16 +0000 |
---|---|---|
committer | pvalchev <> | 2002-02-16 17:22:16 +0000 |
commit | b3ff0a63e902869f22f7320ad0c423a8cc55f40f (patch) | |
tree | e4bb5fd8715e15b28a8bf97231995d49a29ce830 /src/regress/lib | |
parent | 4c6a4314034909514be76e4f7f380acc6ea72bb5 (diff) | |
download | openbsd-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/Makefile | 9 | ||||
-rw-r--r-- | src/regress/lib/libc/ieeefp/inf/inf.c | 13 |
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 | |||
3 | PROG= inf | ||
4 | SRCS= inf.c | ||
5 | |||
6 | LDADD+= -lm | ||
7 | DPADD+= ${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 | |||
9 | int | ||
10 | main() { | ||
11 | if (isinf(HUGE_VAL)) | ||
12 | return 0; | ||
13 | } | ||