usleep tests: Avoid failure due to known Cygwin 3.5.3 bug.
[gnulib.git] / tests / test-uchar-c++.cc
blobf5500695408a2ea2bf8da47549c8e994075046d0
1 /* Test of <uchar.h> substitute in C++ mode.
2 Copyright (C) 2019-2024 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17 /* Written by Bruno Haible <bruno@clisp.org>, 2019. */
19 #define GNULIB_NAMESPACE gnulib
20 #include <config.h>
22 #include <uchar.h>
24 #include "signature.h"
27 #if GNULIB_TEST_BTOC32
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::btoc32, wint_t, (int));
29 #endif
31 #if GNULIB_TEST_C32ISALNUM
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isalnum, int, (wint_t));
33 #endif
35 #if GNULIB_TEST_C32ISALPHA
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isalpha, int, (wint_t));
37 #endif
39 #if GNULIB_TEST_C32ISBLANK
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isblank, int, (wint_t));
41 #endif
43 #if GNULIB_TEST_C32ISCNTRL
44 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32iscntrl, int, (wint_t));
45 #endif
47 #if GNULIB_TEST_C32ISDIGIT
48 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isdigit, int, (wint_t));
49 #endif
51 #if GNULIB_TEST_C32ISGRAPH
52 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isgraph, int, (wint_t));
53 #endif
55 #if GNULIB_TEST_C32ISLOWER
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32islower, int, (wint_t));
57 #endif
59 #if GNULIB_TEST_C32ISPRINT
60 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isprint, int, (wint_t));
61 #endif
63 #if GNULIB_TEST_C32ISPUNCT
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32ispunct, int, (wint_t));
65 #endif
67 #if GNULIB_TEST_C32ISSPACE
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isspace, int, (wint_t));
69 #endif
71 #if GNULIB_TEST_C32ISUPPER
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isupper, int, (wint_t));
73 #endif
75 #if GNULIB_TEST_C32ISXDIGIT
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isxdigit, int, (wint_t));
77 #endif
79 #if GNULIB_TEST_C32RTOMB
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32rtomb, size_t,
81 (char *, char32_t , mbstate_t *));
82 #endif
84 #if GNULIB_TEST_C32SNRTOMBS
85 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32snrtombs, size_t,
86 (char *, const char32_t **, size_t, size_t, mbstate_t *));
87 #endif
89 #if GNULIB_TEST_C32SRTOMBS
90 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32srtombs, size_t,
91 (char *, const char32_t **, size_t, mbstate_t *));
92 #endif
94 #if GNULIB_TEST_C32STOMBS
95 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32stombs, size_t,
96 (char *, const char32_t *, size_t));
97 #endif
99 #if GNULIB_TEST_C32TOB
100 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32tob, int, (wint_t));
101 #endif
103 #if GNULIB_TEST_MBRTOC32
104 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbrtoc32, size_t,
105 (char32_t *, const char *, size_t, mbstate_t *));
106 #endif
108 #if GNULIB_TEST_MBSNRTOC32S
109 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsnrtoc32s, size_t,
110 (char32_t *, const char **, size_t, size_t, mbstate_t *));
112 #endif
114 #if GNULIB_TEST_MBSRTOC32S
115 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsrtoc32s, size_t,
116 (char32_t *, const char **, size_t, mbstate_t *));
117 #endif
119 #if GNULIB_TEST_MBSTOC32S
120 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbstoc32s, size_t,
121 (char32_t *, const char *, size_t));
122 #endif
126 main ()