X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=tests%2Ftest-wchar.c;h=0d720057e176d83ddaa966f9b6e7d2477421ebe6;hb=b1098d3defbaf285f3ed8eff414fa43ffc59d6a2;hp=19da7d93c09d4cfb09e1bb9a63f0631717c04cfb;hpb=6fe332a17fb940b8f7d988ec48968c6316c73ec6;p=gnulib.git diff --git a/tests/test-wchar.c b/tests/test-wchar.c index 19da7d93c..0d720057e 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-2012 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; }