annotate tests/test-dirent-c++.cc @ 40196:e63f5d3edab5

relocatable-prog: Update documentation. * doc/relocatable-maint.texi (Supporting Relocation): Update to match the recent changes.
author Bruno Haible <bruno@clisp.org>
date Sun, 24 Feb 2019 01:49:15 +0100
parents b06060465f09
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12954
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of <dirent.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.
12954
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
b1a410092484 Tests of module 'dirent' in C++ mode.
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: 18855
diff changeset
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12954
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define GNULIB_NAMESPACE gnulib
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <config.h>
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include <dirent.h>
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include "signature.h"
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
18855
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
27 #if GNULIB_TEST_OPENDIR
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::opendir, DIR *, (const char *));
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
29 #endif
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
30
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
31 #if GNULIB_TEST_READDIR
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::readdir, struct dirent *, (DIR *));
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
33 #endif
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
34
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
35 #if GNULIB_TEST_REWINDDIR
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::rewinddir, void, (DIR *));
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
37 #endif
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
38
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
39 #if GNULIB_TEST_CLOSEDIR
12954
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::closedir, int, (DIR *));
18855
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
41 #endif
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
42
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
43 #if GNULIB_TEST_DIRFD
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
44 SIGNATURE_CHECK (GNULIB_NAMESPACE::dirfd, int, (DIR *));
4ff31f714446 dirent-c++-tests: Update.
Bruno Haible <bruno@clisp.org>
parents: 18626
diff changeset
45 #endif
12954
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12954
diff changeset
47 #if GNULIB_TEST_FDOPENDIR
12954
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 SIGNATURE_CHECK (GNULIB_NAMESPACE::fdopendir, DIR *, (int));
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49 #endif
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12954
diff changeset
51 #if GNULIB_TEST_SCANDIR
12954
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52 SIGNATURE_CHECK (GNULIB_NAMESPACE::scandir, int,
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
53 (const char *, struct dirent ***,
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 int (*) (const struct dirent *),
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55 int (*) (const struct dirent **, const struct dirent **)));
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56 #endif
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12954
diff changeset
58 #if GNULIB_TEST_ALPHASORT
12954
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
59 SIGNATURE_CHECK (GNULIB_NAMESPACE::alphasort, int,
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
60 (const struct dirent **, const struct dirent **));
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 #endif
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
63
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64 int
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 main ()
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
66 {
b1a410092484 Tests of module 'dirent' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
67 }