added missing dependencies to fix failing unistr/ tests
[gnulib.git] / tests / test-stdio-c++.cc
1 /* Test of <stdio.h> substitute in C++ mode.
2    Copyright (C) 2010 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 <stdio.h>
23
24 #include "signature.h"
25
26
27 #if GNULIB_TEST_DPRINTF
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::dprintf, int, (int, const char *, ...));
29 #endif
30
31 #if GNULIB_TEST_FCLOSE
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::fclose, int, (FILE *));
33 #endif
34
35 #if GNULIB_TEST_FFLUSH
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::fflush, int, (FILE *));
37 #endif
38
39 #if GNULIB_TEST_FOPEN
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::fopen, FILE *,
41                  (const char *, const char *));
42 #endif
43
44 #if GNULIB_TEST_FPRINTF_POSIX || GNULIB_TEST_FPRINTF
45 SIGNATURE_CHECK (GNULIB_NAMESPACE::fprintf, int, (FILE *, const char *, ...));
46 #endif
47
48 #if GNULIB_TEST_FPURGE
49 SIGNATURE_CHECK (GNULIB_NAMESPACE::fpurge, int, (FILE *));
50 #endif
51
52 #if GNULIB_TEST_FPUTC
53 SIGNATURE_CHECK (GNULIB_NAMESPACE::fputc, int, (int, FILE *));
54 #endif
55
56 #if GNULIB_TEST_FPUTS
57 SIGNATURE_CHECK (GNULIB_NAMESPACE::fputs, int, (const char *, FILE *));
58 #endif
59
60 #if GNULIB_TEST_FREOPEN
61 SIGNATURE_CHECK (GNULIB_NAMESPACE::freopen, FILE *,
62                  (const char *, const char *, FILE *));
63 #endif
64
65 #if GNULIB_TEST_FSEEK
66 SIGNATURE_CHECK (GNULIB_NAMESPACE::fseek, int, (FILE *, long, int));
67 #endif
68
69 #if GNULIB_TEST_FSEEKO
70 SIGNATURE_CHECK (GNULIB_NAMESPACE::fseeko, int, (FILE *, off_t, int));
71 #endif
72
73 #if GNULIB_TEST_FTELL
74 SIGNATURE_CHECK (GNULIB_NAMESPACE::ftell, long, (FILE *));
75 #endif
76
77 #if GNULIB_TEST_FTELLO
78 SIGNATURE_CHECK (GNULIB_NAMESPACE::ftello, off_t, (FILE *));
79 #endif
80
81 #if GNULIB_TEST_FWRITE
82 SIGNATURE_CHECK (GNULIB_NAMESPACE::fwrite, size_t,
83                  (const void *, size_t, size_t, FILE *));
84 #endif
85
86 #if GNULIB_TEST_GETDELIM
87 SIGNATURE_CHECK (GNULIB_NAMESPACE::getdelim, ssize_t,
88                  (char **, size_t *, int, FILE *));
89 #endif
90
91 #if GNULIB_TEST_GETLINE
92 SIGNATURE_CHECK (GNULIB_NAMESPACE::getline, ssize_t,
93                  (char **, size_t *, FILE *));
94 #endif
95
96 #if GNULIB_TEST_OBSTACK_PRINTF || GNULIB_TEST_OBSTACK_PRINTF_POSIX
97 SIGNATURE_CHECK (GNULIB_NAMESPACE::obstack_printf, int,
98                  (struct obstack *, const char *, ...));
99 SIGNATURE_CHECK (GNULIB_NAMESPACE::obstack_vprintf, int,
100                  (struct obstack *, const char *, va_list));
101 #endif
102
103 //SIGNATURE_CHECK (GNULIB_NAMESPACE::pclose, int, (FILE *));
104
105 #if GNULIB_TEST_PERROR
106 SIGNATURE_CHECK (GNULIB_NAMESPACE::perror, void, (const char *));
107 #endif
108
109 #if GNULIB_TEST_POPEN
110 SIGNATURE_CHECK (GNULIB_NAMESPACE::popen, FILE *,
111                  (const char *, const char *));
112 #endif
113
114 #if GNULIB_TEST_PRINTF_POSIX || GNULIB_TEST_PRINTF
115 SIGNATURE_CHECK (GNULIB_NAMESPACE::printf, int, (const char *, ...));
116 #endif
117
118 #if GNULIB_TEST_PUTC
119 SIGNATURE_CHECK (GNULIB_NAMESPACE::putc, int, (int, FILE *));
120 #endif
121
122 #if GNULIB_TEST_PUTCHAR
123 SIGNATURE_CHECK (GNULIB_NAMESPACE::putchar, int, (int));
124 #endif
125
126 #if GNULIB_TEST_PUTS
127 SIGNATURE_CHECK (GNULIB_NAMESPACE::puts, int, (const char *));
128 #endif
129
130 #if GNULIB_TEST_REMOVE
131 SIGNATURE_CHECK (GNULIB_NAMESPACE::remove, int, (const char *));
132 #endif
133
134 #if GNULIB_TEST_RENAME
135 SIGNATURE_CHECK (GNULIB_NAMESPACE::rename, int, (const char *, const char *));
136 #endif
137
138 #if GNULIB_TEST_RENAMEAT
139 SIGNATURE_CHECK (GNULIB_NAMESPACE::renameat, int,
140                  (int, char const *, int, char const *));
141 #endif
142
143 #if GNULIB_TEST_SNPRINTF
144 SIGNATURE_CHECK (GNULIB_NAMESPACE::snprintf, int,
145                  (char *, size_t, const char *, ...));
146 #endif
147
148 #if GNULIB_TEST_SPRINTF_POSIX
149 SIGNATURE_CHECK (GNULIB_NAMESPACE::sprintf, int, (char *, const char *, ...));
150 #endif
151
152 #if GNULIB_TEST_TMPFILE
153 SIGNATURE_CHECK (GNULIB_NAMESPACE::tmpfile, FILE *, (void));
154 #endif
155
156 #if GNULIB_TEST_VASPRINTF
157 SIGNATURE_CHECK (GNULIB_NAMESPACE::asprintf, int,
158                  (char **, const char *, ...));
159 SIGNATURE_CHECK (GNULIB_NAMESPACE::vasprintf, int,
160                  (char **, const char *, va_list));
161 #endif
162
163 #if GNULIB_TEST_VDPRINTF
164 SIGNATURE_CHECK (GNULIB_NAMESPACE::vdprintf, int,
165                  (int, const char *, va_list));
166 #endif
167
168 #if GNULIB_TEST_VFPRINTF_POSIX || GNULIB_TEST_VFPRINTF
169 SIGNATURE_CHECK (GNULIB_NAMESPACE::vfprintf, int,
170                  (FILE *, const char *, va_list));
171 #endif
172
173 #if GNULIB_TEST_VPRINTF_POSIX || GNULIB_TEST_VPRINTF
174 SIGNATURE_CHECK (GNULIB_NAMESPACE::vprintf, int, (const char *, va_list));
175 #endif
176
177 #if GNULIB_TEST_VSNPRINTF
178 SIGNATURE_CHECK (GNULIB_NAMESPACE::vsnprintf, int,
179                  (char *, size_t, const char *, va_list));
180 #endif
181
182 #if GNULIB_TEST_VSPRINTF_POSIX
183 SIGNATURE_CHECK (GNULIB_NAMESPACE::vsprintf, int,
184                  (char *, const char *, va_list));
185 #endif
186
187
188 int
189 main ()
190 {
191 }