summaryrefslogtreecommitdiff
path: root/wchar.c
blob: 525d56289e445b432ab46af6cb4cf0f2c6070e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#if defined __STDC_VERSION__
#include <wchar.h>
#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;
	(void)wchar;
	(void)size;
	(void)mbstate;
	(void)wint;
	(void)tm;

	testing_header("wchar.h");

	test_true(NULL == 0);

	if (WCHAR_MIN == 0) {
		test_min(WCHAR_MAX, 255);
	} else {
		test_min(WCHAR_MIN, -127);
		test_min(WCHAR_MAX, 127);
	}

	testing_end();
}

#else
void test_wchar_h(void)
{
}
#endif