Merge commit 'a39d4083cab589d7cd6a13e8a4b8db8875261d75'
[gnulib.git] / tests / test-wctype-h-c++.cc
1 /* Test of <wctype.h> substitute in C++ mode.
2    Copyright (C) 2010-2014 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 <http://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 #if GNULIB_TEST_ISWBLANK
30 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswblank, int, (wint_t));
31 #endif
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswcntrl, int, (wint_t));
33 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswdigit, int, (wint_t));
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswgraph, int, (wint_t));
35 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswlower, int, (wint_t));
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswprint, int, (wint_t));
37 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswpunct, int, (wint_t));
38 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswspace, int, (wint_t));
39 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswupper, int, (wint_t));
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswxdigit, int, (wint_t));
41
42 #if GNULIB_TEST_WCTYPE
43 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctype, wctype_t, (const char *));
44 #endif
45
46 #if GNULIB_TEST_ISWCTYPE
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswctype, int, (wint_t, wctype_t));
48 #endif
49
50 SIGNATURE_CHECK (GNULIB_NAMESPACE::towlower, wint_t, (wint_t));
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::towupper, wint_t, (wint_t));
52
53 #if GNULIB_TEST_WCTRANS
54 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctrans, wctrans_t, (const char *));
55 #endif
56
57 #if GNULIB_TEST_TOWCTRANS
58 SIGNATURE_CHECK (GNULIB_NAMESPACE::towctrans, wint_t, (wint_t, wctrans_t));
59 #endif
60
61
62 int
63 main ()
64 {
65 }