X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-wchar.c;h=92ae8f222d8f9a4f1bb2d6191f365676e8930234;hb=0fd639d16c41dfd4353947fa00bbfa2375e7e845;hp=19da7d93c09d4cfb09e1bb9a63f0631717c04cfb;hpb=6fe332a17fb940b8f7d988ec48968c6316c73ec6;p=gnulib.git diff --git a/tests/test-wchar.c b/tests/test-wchar.c index 19da7d93c..92ae8f222 100644 --- a/tests/test-wchar.c +++ b/tests/test-wchar.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-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,12 +20,18 @@ #include +#include "verify.h" + /* Check that the types wchar_t and wint_t are defined. */ wchar_t a = 'c'; wint_t b = 'x'; +/* Check that NULL can be passed through varargs as a pointer type, + per POSIX 2008. */ +verify (sizeof NULL == sizeof (void *)); + int -main () +main (void) { return 0; }