X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-wcrtomb.c;h=a50817ffad5055c495bce15ffec67f3e1378de33;hb=60573660307a386a933de834a06c37691120e507;hp=48bae41eb3170b82df4932ea6a1e618e376a8336;hpb=d599e5add275f75ed08e6527b8ee4d3f4f7c3aea;p=gnulib.git diff --git a/tests/test-wcrtomb.c b/tests/test-wcrtomb.c index 48bae41eb..a50817ffa 100644 --- a/tests/test-wcrtomb.c +++ b/tests/test-wcrtomb.c @@ -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]) {