From e75a02562a26c9a399ebef55dad2a59bbf8ba817 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 9 Dec 2010 17:29:29 -0500 Subject: Add the first requirement from POSIX. --- test/a64l.c | 17 +++++++++++++++++ test/regress.chk | 9 ++++++++- test/string.c | 1 + test/umask.c | 9 +++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 test/a64l.c (limited to 'test') 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 */ + +/* + * Items: a64l(, l64a( + * Requires: + * Standardized-By: SuS + * Not-Detected-by: gcc-4.4.3 + Linux + */ + +#include + +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 deheader: test/umask.c requires deheader: test/umask.c requires deheader: test/umask.c has requires | from umask\s*\( +deheader: test/umask.c has requires | from umask\s*\( +deheader: test/a64l.c has requires from a64l\s*\( +deheader: test/a64l.c has requires from l64a\s*\( +deheader: test/a64l.c requires +deheader: test/a64l.c has requires from a64l\s*\( +deheader: test/a64l.c has requires from l64a\s*\( deheader: test/string.c without succeeded. deheader: remove from test/string.c deheader: in test/umask.c, retaining required '#include \n' deheader: in test/umask.c, retaining required '#include \n' +deheader: in test/a64l.c, retaining required '#include \n' deheader: test/duplicate.c without succeeded. deheader: test/duplicate.c without succeeded. deheader: remove from test/duplicate.c deheader: remove 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 + 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 #include + +/* + * Items: umask( + * Requires: , + * Standardized-By: SuS + * Detected-by: gcc-4.4.3 + Linux + * Not-detected-by: BSD + */ + main(int arg, char **argv) { umask(777); -- cgit v1.2.3-70-g09d2