X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-unistd.c;h=5470985a8381f2b7a323ea1a6c0ac1bf7650eee4;hb=fdd1b511c5c12912aae79b58e0c5f6ffa0492d6e;hp=5fed15cf9fd8fdcc50b4ad7bb63ceef4d9b94cac;hpb=ca029d76d0c55ceada6cdda59da31b0d69e29eb3;p=gnulib.git diff --git a/tests/test-unistd.c b/tests/test-unistd.c index 5fed15cf9..5470985a8 100644 --- a/tests/test-unistd.c +++ b/tests/test-unistd.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,6 +20,12 @@ #include +#include "verify.h" + +/* Check that NULL can be passed through varargs as a pointer type, + per POSIX 2008. */ +verify (sizeof NULL == sizeof (void *)); + /* Check that the various SEEK_* macros are defined. */ int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET }; @@ -44,7 +50,7 @@ intptr_t t8; #endif int -main () +main (void) { return 0; }