Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libcxx / test / std / diagnostics / errno / cerrno.pass.cpp
blobd6c333f05ff65864a3f98d7faeeaa32ddd76f0cb
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // test <cerrno>
11 #include <cerrno>
13 #include "test_macros.h"
15 #ifndef E2BIG
16 #error E2BIG not defined
17 #endif
19 #ifndef EACCES
20 #error EACCES not defined
21 #endif
23 #ifndef EACCES
24 #error EACCES not defined
25 #endif
27 #ifndef EADDRINUSE
28 #error EADDRINUSE not defined
29 #endif
31 #ifndef EADDRNOTAVAIL
32 #error EADDRNOTAVAIL not defined
33 #endif
35 #ifndef EAFNOSUPPORT
36 #error EAFNOSUPPORT not defined
37 #endif
39 #ifndef EAGAIN
40 #error EAGAIN not defined
41 #endif
43 #ifndef EALREADY
44 #error EALREADY not defined
45 #endif
47 #ifndef EBADF
48 #error EBADF not defined
49 #endif
51 #ifndef EBADMSG
52 #error EBADMSG not defined
53 #endif
55 #ifndef EBUSY
56 #error EBUSY not defined
57 #endif
59 #ifndef ECANCELED
60 #error ECANCELED not defined
61 #endif
63 #ifndef ECHILD
64 #error ECHILD not defined
65 #endif
67 #ifndef ECONNABORTED
68 #error ECONNABORTED not defined
69 #endif
71 #ifndef ECONNREFUSED
72 #error ECONNREFUSED not defined
73 #endif
75 #ifndef ECONNRESET
76 #error ECONNRESET not defined
77 #endif
79 #ifndef EDEADLK
80 #error EDEADLK not defined
81 #endif
83 #ifndef EDESTADDRREQ
84 #error EDESTADDRREQ not defined
85 #endif
87 #ifndef EDOM
88 #error EDOM not defined
89 #endif
91 #ifndef EEXIST
92 #error EEXIST not defined
93 #endif
95 #ifndef EFAULT
96 #error EFAULT not defined
97 #endif
99 #ifndef EFBIG
100 #error EFBIG not defined
101 #endif
103 #ifndef EHOSTUNREACH
104 #error EHOSTUNREACH not defined
105 #endif
107 #ifndef EIDRM
108 #error EIDRM not defined
109 #endif
111 #ifndef EILSEQ
112 #error EILSEQ not defined
113 #endif
115 #ifndef EINPROGRESS
116 #error EINPROGRESS not defined
117 #endif
119 #ifndef EINTR
120 #error EINTR not defined
121 #endif
123 #ifndef EINVAL
124 #error EINVAL not defined
125 #endif
127 #ifndef EIO
128 #error EIO not defined
129 #endif
131 #ifndef EISCONN
132 #error EISCONN not defined
133 #endif
135 #ifndef EISDIR
136 #error EISDIR not defined
137 #endif
139 #ifndef ELOOP
140 #error ELOOP not defined
141 #endif
143 #ifndef EMFILE
144 #error EMFILE not defined
145 #endif
147 #ifndef EMLINK
148 #error EMLINK not defined
149 #endif
151 #ifndef EMSGSIZE
152 #error EMSGSIZE not defined
153 #endif
155 #ifndef ENAMETOOLONG
156 #error ENAMETOOLONG not defined
157 #endif
159 #ifndef ENETDOWN
160 #error ENETDOWN not defined
161 #endif
163 #ifndef ENETRESET
164 #error ENETRESET not defined
165 #endif
167 #ifndef ENETUNREACH
168 #error ENETUNREACH not defined
169 #endif
171 #ifndef ENFILE
172 #error ENFILE not defined
173 #endif
175 #ifndef ENOBUFS
176 #error ENOBUFS not defined
177 #endif
179 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1)
180 #ifndef ENODATA
181 #error ENODATA not defined
182 #endif
183 #endif
185 #ifndef ENODEV
186 #error ENODEV not defined
187 #endif
189 #ifndef ENOENT
190 #error ENOENT not defined
191 #endif
193 #ifndef ENOEXEC
194 #error ENOEXEC not defined
195 #endif
197 #ifndef ENOLCK
198 #error ENOLCK not defined
199 #endif
201 #ifndef ENOLINK
202 #error ENOLINK not defined
203 #endif
205 #ifndef ENOMEM
206 #error ENOMEM not defined
207 #endif
209 #ifndef ENOMSG
210 #error ENOMSG not defined
211 #endif
213 #ifndef ENOPROTOOPT
214 #error ENOPROTOOPT not defined
215 #endif
217 #ifndef ENOSPC
218 #error ENOSPC not defined
219 #endif
221 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1)
222 #ifndef ENOSR
223 #error ENOSR not defined
224 #endif
225 #endif
227 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1)
228 #ifndef ENOSTR
229 #error ENOSTR not defined
230 #endif
231 #endif
233 #ifndef ENOSYS
234 #error ENOSYS not defined
235 #endif
237 #ifndef ENOTCONN
238 #error ENOTCONN not defined
239 #endif
241 #ifndef ENOTDIR
242 #error ENOTDIR not defined
243 #endif
245 #ifndef ENOTEMPTY
246 #error ENOTEMPTY not defined
247 #endif
249 #ifndef ENOTRECOVERABLE
250 #error ENOTRECOVERABLE not defined
251 #endif
253 #ifndef ENOTSOCK
254 #error ENOTSOCK not defined
255 #endif
257 #ifndef ENOTSUP
258 #error ENOTSUP not defined
259 #endif
261 #ifndef ENOTTY
262 #error ENOTTY not defined
263 #endif
265 #ifndef ENXIO
266 #error ENXIO not defined
267 #endif
269 #ifndef EOPNOTSUPP
270 #error EOPNOTSUPP not defined
271 #endif
273 #ifndef EOVERFLOW
274 #error EOVERFLOW not defined
275 #endif
277 #ifndef EOWNERDEAD
278 #error EOWNERDEAD not defined
279 #endif
281 #ifndef EPERM
282 #error EPERM not defined
283 #endif
285 #ifndef EPIPE
286 #error EPIPE not defined
287 #endif
289 #ifndef EPROTO
290 #error EPROTO not defined
291 #endif
293 #ifndef EPROTONOSUPPORT
294 #error EPROTONOSUPPORT not defined
295 #endif
297 #ifndef EPROTOTYPE
298 #error EPROTOTYPE not defined
299 #endif
301 #ifndef ERANGE
302 #error ERANGE not defined
303 #endif
305 #ifndef EROFS
306 #error EROFS not defined
307 #endif
309 #ifndef ESPIPE
310 #error ESPIPE not defined
311 #endif
313 #ifndef ESRCH
314 #error ESRCH not defined
315 #endif
317 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1)
318 #ifndef ETIME
319 #error ETIME not defined
320 #endif
321 #endif
323 #ifndef ETIMEDOUT
324 #error ETIMEDOUT not defined
325 #endif
327 #ifndef ETXTBSY
328 #error ETXTBSY not defined
329 #endif
331 #ifndef EWOULDBLOCK
332 #error EWOULDBLOCK not defined
333 #endif
335 #ifndef EXDEV
336 #error EXDEV not defined
337 #endif
339 #ifndef errno
340 #error errno not defined
341 #endif
343 int main(int, char**)
346 return 0;