annotate tests/test-wctype-h-c++.cc @ 40227:5207eb0dcd2a

tests: Avoid havoc with "gcc -fcheck-pointer-bounds". * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds is in use. * tests/test-printf-posix2.c: Likewise.
author Bruno Haible <bruno@clisp.org>
date Sun, 10 Mar 2019 17:09:30 +0100
parents b06060465f09
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of <wctype.h> substitute in C++ mode.
40057
b06060465f09 maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents: 19484
diff changeset
2 Copyright (C) 2010-2019 Free Software Foundation, Inc.
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
19190
9759915b2aca all: prefer https: URLs
Paul Eggert <eggert@cs.ucla.edu>
parents: 18869
diff changeset
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define GNULIB_NAMESPACE gnulib
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <config.h>
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include <wctype.h>
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include "signature.h"
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswalnum, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswalpha, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswcntrl, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswdigit, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswgraph, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswlower, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswprint, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswpunct, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswspace, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswupper, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswxdigit, int, (wint_t));
18869
df93c27aff2b wctype-h-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
38 #if GNULIB_TEST_ISWBLANK
df93c27aff2b wctype-h-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
39 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswblank, int, (wint_t));
df93c27aff2b wctype-h-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
40 #endif
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41
14319
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents: 14310
diff changeset
42 #if GNULIB_TEST_WCTYPE
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents: 14310
diff changeset
43 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctype, wctype_t, (const char *));
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents: 14310
diff changeset
44 #endif
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents: 14310
diff changeset
45
14320
9a2d4c1b2034 New module 'iswctype'.
Bruno Haible <bruno@clisp.org>
parents: 14319
diff changeset
46 #if GNULIB_TEST_ISWCTYPE
9a2d4c1b2034 New module 'iswctype'.
Bruno Haible <bruno@clisp.org>
parents: 14319
diff changeset
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswctype, int, (wint_t, wctype_t));
9a2d4c1b2034 New module 'iswctype'.
Bruno Haible <bruno@clisp.org>
parents: 14319
diff changeset
48 #endif
9a2d4c1b2034 New module 'iswctype'.
Bruno Haible <bruno@clisp.org>
parents: 14319
diff changeset
49
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 SIGNATURE_CHECK (GNULIB_NAMESPACE::towlower, wint_t, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::towupper, wint_t, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52
14321
3b388f38755d New module 'wctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14320
diff changeset
53 #if GNULIB_TEST_WCTRANS
3b388f38755d New module 'wctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14320
diff changeset
54 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctrans, wctrans_t, (const char *));
3b388f38755d New module 'wctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14320
diff changeset
55 #endif
3b388f38755d New module 'wctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14320
diff changeset
56
14322
4d31d731ac62 New module 'towctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14321
diff changeset
57 #if GNULIB_TEST_TOWCTRANS
4d31d731ac62 New module 'towctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14321
diff changeset
58 SIGNATURE_CHECK (GNULIB_NAMESPACE::towctrans, wint_t, (wint_t, wctrans_t));
4d31d731ac62 New module 'towctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14321
diff changeset
59 #endif
4d31d731ac62 New module 'towctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14321
diff changeset
60
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 int
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
63 main ()
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64 {
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 }