add iswspace(0) regression test
[libc-test] / src / regression / iswspace-null.c
diff --git a/src/regression/iswspace-null.c b/src/regression/iswspace-null.c
new file mode 100644 (file)
index 0000000..4afb89b
--- /dev/null
@@ -0,0 +1,11 @@
+// commit: d8e8f1464cb02d6a62f01c7153ca4d7b0cd5c5e6 2013-11-11
+// iswspace(0) should be 0
+#include <wctype.h>
+#include "test.h"
+
+int main(void)
+{
+       if (iswspace(0)!=0)
+               t_error("iswspace(0) returned non-zero\n");
+       return t_status;
+}