wchar.c 449 B

123456789101112131415161718192021222324252627282930313233
  1. #if defined __STDC_VERSION__
  2. #include <wchar.h>
  3. #include "_wchar.h"
  4. #include "test.h"
  5. wchar_t test_wchar;
  6. size_t test_size;
  7. mbstate_t test_mbstate;
  8. wint_t test_wint;
  9. struct tm *test_tm;
  10. void test_wchar_h(void)
  11. {
  12. testing_header("wchar.h");
  13. test_true(NULL == 0);
  14. if (WCHAR_MIN == 0) {
  15. test_min(WCHAR_MAX, 255);
  16. } else {
  17. test_min(WCHAR_MIN, -127);
  18. test_min(WCHAR_MAX, 127);
  19. }
  20. testing_end();
  21. }
  22. #else
  23. void test_wchar_h(void)
  24. {
  25. }
  26. #endif