diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/a64l.c | 17 | ||||
-rw-r--r-- | test/regress.chk | 9 | ||||
-rw-r--r-- | test/string.c | 1 | ||||
-rw-r--r-- | test/umask.c | 9 |
4 files changed, 35 insertions, 1 deletions
diff --git a/test/a64l.c b/test/a64l.c new file mode 100644 index 0000000..84d5b15 --- /dev/null +++ b/test/a64l.c @@ -0,0 +1,17 @@ +/* a64l and l64() require <stdlib.h> */ + +/* + * Items: a64l(, l64a( + * Requires: <stdlib.h> + * Standardized-By: SuS + * Not-Detected-by: gcc-4.4.3 + Linux + */ + +#include <stdlib.h> + +main(int arg, char **argv) +{ + (void) a64l("2317"); + (void) l64a(2317); + +} diff --git a/test/regress.chk b/test/regress.chk index f92e36e..cd3429a 100644 --- a/test/regress.chk +++ b/test/regress.chk @@ -5,12 +5,19 @@ deheader: test/duplicate.c has more than one inclusion of <stdio.h> deheader: test/umask.c requires <sys/stat.h> deheader: test/umask.c requires <sys/types.h> deheader: test/umask.c has requires <sys/stat.h>|<sys/types.h> from umask\s*\( +deheader: test/umask.c has requires <sys/stat.h>|<sys/types.h> from umask\s*\( +deheader: test/a64l.c has requires <stdlib.h> from a64l\s*\( +deheader: test/a64l.c has requires <stdlib.h> from l64a\s*\( +deheader: test/a64l.c requires <stdlib.h> +deheader: test/a64l.c has requires <stdlib.h> from a64l\s*\( +deheader: test/a64l.c has requires <stdlib.h> from l64a\s*\( deheader: test/string.c without <string.h> succeeded. deheader: remove <string.h> from test/string.c deheader: in test/umask.c, retaining required '#include <sys/types.h>\n' deheader: in test/umask.c, retaining required '#include <sys/stat.h>\n' +deheader: in test/a64l.c, retaining required '#include <stdlib.h>\n' deheader: test/duplicate.c without <stdio.h> succeeded. deheader: test/duplicate.c without <stdio.h> succeeded. deheader: remove <stdio.h> from test/duplicate.c deheader: remove <stdio.h> from test/duplicate.c -deheader: saw 4 files, 5 includes, 3 removed +deheader: saw 5 files, 6 includes, 3 removed diff --git a/test/string.c b/test/string.c index 3f75878..572cdf5 100644 --- a/test/string.c +++ b/test/string.c @@ -1,6 +1,7 @@ /* this file has string.h but doesn't need it */ #include <string.h> + main(int arg, char **argv) { } diff --git a/test/umask.c b/test/umask.c index ae98c09..fa6d04a 100644 --- a/test/umask.c +++ b/test/umask.c @@ -2,6 +2,15 @@ #include <sys/stat.h> #include <sys/types.h> + +/* + * Items: umask( + * Requires: <sys/types.h>,<sys/stat.h> + * Standardized-By: SuS + * Detected-by: gcc-4.4.3 + Linux + * Not-detected-by: BSD + */ + main(int arg, char **argv) { umask(777); |