add iswspace(0) regression test
authorSzabolcs Nagy <nsz@port70.net>
Thu, 5 Dec 2013 01:25:31 +0000 (01:25 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 5 Dec 2013 01:25:31 +0000 (01:25 +0000)
src/regression/iswspace-null.c [new file with mode: 0644]

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;
+}