expl: Work around inaccurate implementation on NetBSD.
[gnulib.git] / tests / test-wctype-h-c++.cc
blobb208b6c2a29acd993e7070b25af6724f22f745b7
1 /* Test of <wctype.h> substitute in C++ mode.
2 Copyright (C) 2010-2019 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>, 2010. */
19 #define GNULIB_NAMESPACE gnulib
20 #include <config.h>
22 #include <wctype.h>
24 #include "signature.h"
27 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswalnum, int, (wint_t));
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswalpha, int, (wint_t));
29 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswcntrl, int, (wint_t));
30 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswdigit, int, (wint_t));
31 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswgraph, int, (wint_t));
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswlower, int, (wint_t));
33 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswprint, int, (wint_t));
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswpunct, int, (wint_t));
35 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswspace, int, (wint_t));
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswupper, int, (wint_t));
37 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswxdigit, int, (wint_t));
38 #if GNULIB_TEST_ISWBLANK
39 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswblank, int, (wint_t));
40 #endif
42 #if GNULIB_TEST_WCTYPE
43 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctype, wctype_t, (const char *));
44 #endif
46 #if GNULIB_TEST_ISWCTYPE
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswctype, int, (wint_t, wctype_t));
48 #endif
50 SIGNATURE_CHECK (GNULIB_NAMESPACE::towlower, wint_t, (wint_t));
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::towupper, wint_t, (wint_t));
53 #if GNULIB_TEST_WCTRANS
54 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctrans, wctrans_t, (const char *));
55 #endif
57 #if GNULIB_TEST_TOWCTRANS
58 SIGNATURE_CHECK (GNULIB_NAMESPACE::towctrans, wint_t, (wint_t, wctrans_t));
59 #endif
62 int
63 main ()