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/libc/ieeefp/inf/inf.c | |
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/libc/ieeefp/inf/inf.c')
-rw-r--r-- | src/regress/lib/libc/ieeefp/inf/inf.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 | } | ||