summaryrefslogtreecommitdiff
path: root/wchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'wchar.c')
-rw-r--r--wchar.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/wchar.c b/wchar.c
new file mode 100644
index 0000000..d6e59ea
--- /dev/null
+++ b/wchar.c
@@ -0,0 +1,27 @@
+#if defined __STDC_VERSION__
+#include <wchar.h>
+#include "test.h"
+
+void test_wchar_h(void)
+{
+ wchar_t wchar;
+ size_t size;
+ mbstate_t mbstate;
+ wint_t wint;
+ struct tm *tm;
+
+ testing_header("wchar.h");
+
+ test_true(NULL == 0);
+ test_min(WCHAR_MIN, 0);
+ test_min(WCHAR_MAX, 0);
+ test_defined(WEOF);
+
+ testing_end();
+}
+
+#else
+void test_wchar_h(void)
+{
+}
+#endif