Bump to m4 1.4.19
[platform/upstream/m4.git] / tests / test-wctype-h-c++.cc
1 /* Test of <wctype.h> substitute in C++ mode.
2    Copyright (C) 2010-2021 Free Software Foundation, Inc.
3
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.
8
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.
13
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/>.  */
16
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
18
19 #define GNULIB_NAMESPACE gnulib
20 #include <config.h>
21
22 #include <wctype.h>
23
24 #include "signature.h"
25
26
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 #if GNULIB_TEST_ISWDIGIT
31 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswdigit, int, (wint_t));
32 #endif
33 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswgraph, int, (wint_t));
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswlower, int, (wint_t));
35 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswprint, int, (wint_t));
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswpunct, int, (wint_t));
37 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswspace, int, (wint_t));
38 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswupper, int, (wint_t));
39 #if GNULIB_TEST_ISWXDIGIT
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswxdigit, int, (wint_t));
41 #endif
42 #if GNULIB_TEST_ISWBLANK
43 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswblank, int, (wint_t));
44 #endif
45
46 #if GNULIB_TEST_WCTYPE
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctype, wctype_t, (const char *));
48 #endif
49
50 #if GNULIB_TEST_ISWCTYPE
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswctype, int, (wint_t, wctype_t));
52 #endif
53
54 SIGNATURE_CHECK (GNULIB_NAMESPACE::towlower, wint_t, (wint_t));
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::towupper, wint_t, (wint_t));
56
57 #if GNULIB_TEST_WCTRANS
58 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctrans, wctrans_t, (const char *));
59 #endif
60
61 #if GNULIB_TEST_TOWCTRANS
62 SIGNATURE_CHECK (GNULIB_NAMESPACE::towctrans, wint_t, (wint_t, wctrans_t));
63 #endif
64
65
66 int
67 main ()
68 {
69 }