blob: 48519692a7c031bb6206e7007e79da9d4bc7d21b (
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
|
#include <errno.h>
#include "test.h"
#ifndef EDOM
#error EDOM not defined
#endif
#ifndef ERANGE
#error ERANGE not defined
#endif
#if __STDC_VERSION__ >= 199409
#ifndef EILSEQ
#error EILSEQ not defined
#endif
#endif
void test_errno_h(void)
{
struct lconv *lc;
int errno_values[] = {
EDOM,
ERANGE,
#ifdef EILSEQ
EILSEQ,
#endif
};
testing_header("errno.h");
test_distinct(errno_values);
testing_end();
}
|