Add files missing from last commit.
[gnulib.git] / tests / test-wctype.c
1 /* Test of <wctype.h> substitute.
2    Copyright (C) 2007-2008 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>, 2007.  */
18
19 #include <config.h>
20
21 #include <wctype.h>
22
23 /* Check that the type wint_t is defined.  */
24 wint_t a = 'x';
25
26 int
27 main ()
28 {
29   /* Check that the isw* functions exist as functions or as macros.  */
30   (void) iswalnum (0);
31   (void) iswalpha (0);
32 #if 0 /* not portable: missing on mingw */
33   (void) iswblank (0);
34 #endif
35   (void) iswcntrl (0);
36   (void) iswdigit (0);
37   (void) iswgraph (0);
38   (void) iswlower (0);
39   (void) iswprint (0);
40   (void) iswpunct (0);
41   (void) iswspace (0);
42   (void) iswupper (0);
43   (void) iswxdigit (0);
44
45   return 0;
46 }