getaddrinfo: Doc fix.
[pspp] / tests / test-wcrtomb.c
index 48bae41eb3170b82df4932ea6a1e618e376a8336..a50817ffad5055c495bce15ffec67f3e1378de33 100644 (file)
@@ -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])
       {