diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-10 15:47:08 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-10 15:47:08 -0500 |
commit | a0d199a383172532c7a3bdca340ed3d045c325bc (patch) | |
tree | 9f14caee895e69be8e5ff41f8dbcddf89b9327db | |
parent | 06943df8ee140218f1e43324602139ae1973c58d (diff) | |
download | deheader-a0d199a383172532c7a3bdca340ed3d045c325bc.tar.gz deheader-a0d199a383172532c7a3bdca340ed3d045c325bc.tar.bz2 deheader-a0d199a383172532c7a3bdca340ed3d045c325bc.tar.xz deheader-a0d199a383172532c7a3bdca340ed3d045c325bc.zip |
Tests for atan2(3), atexit(3), atof(3).
-rwxr-xr-x | deheader | 1 | ||||
-rw-r--r-- | test/abort.c | 2 | ||||
-rw-r--r-- | test/abs.c | 2 | ||||
-rw-r--r-- | test/alarm.c | 2 | ||||
-rw-r--r-- | test/atan2.c | 15 | ||||
-rw-r--r-- | test/atexit.c | 15 | ||||
-rw-r--r-- | test/atof.c | 16 |
7 files changed, 50 insertions, 3 deletions
@@ -48,6 +48,7 @@ requirements = map(lambda (r, h): (re.compile(r), h), ( (r"advance\s*\(", "<regexp.h>"), (r"atan\s*\(", "<math.h>"), (r"atanh\s*\(", "<math.h>"), + (r"atan2\s*\(", "<math.h>"), (r"umask\s*\(", "<sys/stat.h>|<sys/types.h>"), (r"<sys/socket.h>", "<sys/stat.h>|<sys/types.h>"), )) diff --git a/test/abort.c b/test/abort.c index 20b2666..1581668 100644 --- a/test/abort.c +++ b/test/abort.c @@ -4,7 +4,7 @@ * Items: abort( * Requires: <stdlib.h> * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux + * Not-Detected-by: gcc-4.4.3 + Linux */ #include <stdlib.h> @@ -4,7 +4,7 @@ * Items: abs( * Requires: <stdlib.h> * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux + * Not-Detected-by: gcc-4.4.3 + Linux */ #include <stdlib.h> diff --git a/test/alarm.c b/test/alarm.c index 4452b58..c3fc7a1 100644 --- a/test/alarm.c +++ b/test/alarm.c @@ -4,7 +4,7 @@ * Items: alarm( * Requires: <unistd.h> * Standardized-By: SuS - * Detected-by: gcc-4.4.3 + Linux + * Not-Detected-by: gcc-4.4.3 + Linux */ #include <unistd.h> diff --git a/test/atan2.c b/test/atan2.c new file mode 100644 index 0000000..003d445 --- /dev/null +++ b/test/atan2.c @@ -0,0 +1,15 @@ +/* atan2() requires <stdlib.h> */ + +/* + * Items: atan2( + * Requires: <stdlib.h> + * Standardized-By: SuS + * Not-Detected-by: gcc-4.4.3 + Linux + */ + +#include <math.h> + +main(int arg, char **argv) +{ + atan2(-23.0, 17.0); +} diff --git a/test/atexit.c b/test/atexit.c new file mode 100644 index 0000000..9295a71 --- /dev/null +++ b/test/atexit.c @@ -0,0 +1,15 @@ +/* atexit() requires <stdlib.h> */ + +/* + * Items: atexit( + * Requires: <stdlib.h> + * Standardized-By: SuS + * Detected-by: gcc-4.4.3 + Linux + */ + +#include <stdlib.h> + +main(int arg, char **argv) +{ + atexit(NULL); +} diff --git a/test/atof.c b/test/atof.c new file mode 100644 index 0000000..54e7c60 --- /dev/null +++ b/test/atof.c @@ -0,0 +1,16 @@ +/* atof require <stdlib.h> */ + +/* + * Items: atofl(, l64a( + * Requires: <stdlib.h> + * Standardized-By: SuS + * Not-Detected-by: gcc-4.4.3 + Linux + */ + +#include <stdlib.h> + +main(int arg, char **argv) +{ + (void) atof("2317"); + +} |