X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-wcrtomb.c;h=a50817ffad5055c495bce15ffec67f3e1378de33;hb=a99c0f83b06bee0d89e1a409fe2759207b7cf480;hp=198e09b3bea5dfbd3fbf23d3e23f58ed9bb0a40c;hpb=987e5651e8d1c5aa933c9ce88562806af4093702;p=gnulib.git diff --git a/tests/test-wcrtomb.c b/tests/test-wcrtomb.c index 198e09b3b..a50817ffa 100644 --- a/tests/test-wcrtomb.c +++ b/tests/test-wcrtomb.c @@ -1,5 +1,5 @@ /* Test of conversion of wide character to multibyte character. - Copyright (C) 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2008-2011 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 @@ -105,6 +105,14 @@ main (int argc, char *argv[]) } } + /* Test special calling convention, passing a NULL pointer. */ + { + ret = wcrtomb (NULL, '\0', NULL); + ASSERT (ret == 1); + ret = wcrtomb (NULL, btowc ('x'), NULL); + ASSERT (ret == 1); + } + if (argc > 1) switch (argv[1][0]) {