summaryrefslogtreecommitdiff
path: root/stdint.c
blob: 86694f00e517e51b5378f95e6149df92f685c3b2 (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
38
39
40
41
42
43
44
#if defined __STDC_VERSION__ && 199901L <= __STDC_VERSION__
#include <stdint.h>
#include "test.h"

void test_stdint_h(void)
{
	intptr_t intptr;
	uintptr_t uintptr;
	intmax_t intmax;
	uintmax_t uintmax;

	testing_header("stdint.h");

	test_min(INTPTR_MIN, 0);
	test_min(INTPTR_MAX, 0);
	test_min(UINTPTR_MAX, 0);

	test_min(INTMAX_MIN, 0);
	test_min(INTMAX_MAX, 0);
	test_min(UINTMAX_MAX, 0);

	test_min(PTRDIFF_MIN, 0);
	test_min(PTRDIFF_MAX, 0);
	test_min(PTRDIFF_MAX, 0);

	test_min(SIG_ATOMIC_MIN, 0);
	test_min(SIG_ATOMIC_MAX, 0);

	test_min(SIZE_MAX, 0);

	test_min(WCHAR_MIN, 0);
	test_min(WCHAR_MAX, 0);

	test_min(WINT_MIN, 0);
	test_min(WINT_MAX, 0);

	testing_end();
}

#else
void test_stdint_h(void)
{
}
#endif