[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / libcxx / test / std / diagnostics / errno / cerrno.pass.cpp
blob233d728493838952939d1a2b0f1e5dfb04298e40
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
10 // test <cerrno>
12 #include <cerrno>
14 #include "test_macros.h"
16 #ifndef E2BIG
17 #error E2BIG not defined
18 #endif
20 #ifndef EACCES
21 #error EACCES not defined
22 #endif
24 #ifndef EACCES
25 #error EACCES not defined
26 #endif
28 #ifndef EADDRINUSE
29 #error EADDRINUSE not defined
30 #endif
32 #ifndef EADDRNOTAVAIL
33 #error EADDRNOTAVAIL not defined
34 #endif
36 #ifndef EAFNOSUPPORT
37 #error EAFNOSUPPORT not defined
38 #endif
40 #ifndef EAGAIN
41 #error EAGAIN not defined
42 #endif
44 #ifndef EALREADY
45 #error EALREADY not defined
46 #endif
48 #ifndef EBADF
49 #error EBADF not defined
50 #endif
52 #ifndef EBADMSG
53 #error EBADMSG not defined
54 #endif
56 #ifndef EBUSY
57 #error EBUSY not defined
58 #endif
60 #ifndef ECANCELED
61 #error ECANCELED not defined
62 #endif
64 #ifndef ECHILD
65 #error ECHILD not defined
66 #endif
68 #ifndef ECONNABORTED
69 #error ECONNABORTED not defined
70 #endif
72 #ifndef ECONNREFUSED
73 #error ECONNREFUSED not defined
74 #endif
76 #ifndef ECONNRESET
77 #error ECONNRESET not defined
78 #endif
80 #ifndef EDEADLK
81 #error EDEADLK not defined
82 #endif
84 #ifndef EDESTADDRREQ
85 #error EDESTADDRREQ not defined
86 #endif
88 #ifndef EDOM
89 #error EDOM not defined
90 #endif
92 #ifndef EEXIST
93 #error EEXIST not defined
94 #endif
96 #ifndef EFAULT
97 #error EFAULT not defined
98 #endif
100 #ifndef EFBIG
101 #error EFBIG not defined
102 #endif
104 #ifndef EHOSTUNREACH
105 #error EHOSTUNREACH not defined
106 #endif
108 #ifndef EIDRM
109 #error EIDRM not defined
110 #endif
112 #ifndef EILSEQ
113 #error EILSEQ not defined
114 #endif
116 #ifndef EINPROGRESS
117 #error EINPROGRESS not defined
118 #endif
120 #ifndef EINTR
121 #error EINTR not defined
122 #endif
124 #ifndef EINVAL
125 #error EINVAL not defined
126 #endif
128 #ifndef EIO
129 #error EIO not defined
130 #endif
132 #ifndef EISCONN
133 #error EISCONN not defined
134 #endif
136 #ifndef EISDIR
137 #error EISDIR not defined
138 #endif
140 #ifndef ELOOP
141 #error ELOOP not defined
142 #endif
144 #ifndef EMFILE
145 #error EMFILE not defined
146 #endif
148 #ifndef EMLINK
149 #error EMLINK not defined
150 #endif
152 #ifndef EMSGSIZE
153 #error EMSGSIZE not defined
154 #endif
156 #ifndef ENAMETOOLONG
157 #error ENAMETOOLONG not defined
158 #endif
160 #ifndef ENETDOWN
161 #error ENETDOWN not defined
162 #endif
164 #ifndef ENETRESET
165 #error ENETRESET not defined
166 #endif
168 #ifndef ENETUNREACH
169 #error ENETUNREACH not defined
170 #endif
172 #ifndef ENFILE
173 #error ENFILE not defined
174 #endif
176 #ifndef ENOBUFS
177 #error ENOBUFS not defined
178 #endif
180 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1)
181 #ifndef ENODATA
182 #error ENODATA not defined
183 #endif
184 #endif
186 #ifndef ENODEV
187 #error ENODEV not defined
188 #endif
190 #ifndef ENOENT
191 #error ENOENT not defined
192 #endif
194 #ifndef ENOEXEC
195 #error ENOEXEC not defined
196 #endif
198 #ifndef ENOLCK
199 #error ENOLCK not defined
200 #endif
202 #ifndef ENOLINK
203 #error ENOLINK not defined
204 #endif
206 #ifndef ENOMEM
207 #error ENOMEM not defined
208 #endif
210 #ifndef ENOMSG
211 #error ENOMSG not defined
212 #endif
214 #ifndef ENOPROTOOPT
215 #error ENOPROTOOPT not defined
216 #endif
218 #ifndef ENOSPC
219 #error ENOSPC not defined
220 #endif
222 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1)
223 #ifndef ENOSR
224 #error ENOSR not defined
225 #endif
226 #endif
228 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1)
229 #ifndef ENOSTR
230 #error ENOSTR not defined
231 #endif
232 #endif
234 #ifndef ENOSYS
235 #error ENOSYS not defined
236 #endif
238 #ifndef ENOTCONN
239 #error ENOTCONN not defined
240 #endif
242 #ifndef ENOTDIR
243 #error ENOTDIR not defined
244 #endif
246 #ifndef ENOTEMPTY
247 #error ENOTEMPTY not defined
248 #endif
250 #ifndef ENOTRECOVERABLE
251 #error ENOTRECOVERABLE not defined
252 #endif
254 #ifndef ENOTSOCK
255 #error ENOTSOCK not defined
256 #endif
258 #ifndef ENOTSUP
259 #error ENOTSUP not defined
260 #endif
262 #ifndef ENOTTY
263 #error ENOTTY not defined
264 #endif
266 #ifndef ENXIO
267 #error ENXIO not defined
268 #endif
270 #ifndef EOPNOTSUPP
271 #error EOPNOTSUPP not defined
272 #endif
274 #ifndef EOVERFLOW
275 #error EOVERFLOW not defined
276 #endif
278 #ifndef EOWNERDEAD
279 #error EOWNERDEAD not defined
280 #endif
282 #ifndef EPERM
283 #error EPERM not defined
284 #endif
286 #ifndef EPIPE
287 #error EPIPE not defined
288 #endif
290 #ifndef EPROTO
291 #error EPROTO not defined
292 #endif
294 #ifndef EPROTONOSUPPORT
295 #error EPROTONOSUPPORT not defined
296 #endif
298 #ifndef EPROTOTYPE
299 #error EPROTOTYPE not defined
300 #endif
302 #ifndef ERANGE
303 #error ERANGE not defined
304 #endif
306 #ifndef EROFS
307 #error EROFS not defined
308 #endif
310 #ifndef ESPIPE
311 #error ESPIPE not defined
312 #endif
314 #ifndef ESRCH
315 #error ESRCH not defined
316 #endif
318 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1)
319 #ifndef ETIME
320 #error ETIME not defined
321 #endif
322 #endif
324 #ifndef ETIMEDOUT
325 #error ETIMEDOUT not defined
326 #endif
328 #ifndef ETXTBSY
329 #error ETXTBSY not defined
330 #endif
332 #ifndef EWOULDBLOCK
333 #error EWOULDBLOCK not defined
334 #endif
336 #ifndef EXDEV
337 #error EXDEV not defined
338 #endif
340 #ifndef errno
341 #error errno not defined
342 #endif
344 int main(int, char**)
347 return 0;