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