Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===-------------------------- algorithm ---------------------------------===// |
| 3 | // |
Howard Hinnant | 5b08a8a | 2010-05-11 21:36:01 +0000 | [diff] [blame^] | 4 | // The LLVM Compiler Infrastructure |
Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 5 | // |
| 6 | // This file is distributed under the University of Illinois Open Source |
| 7 | // License. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | // test <cerrno> |
| 12 | |
| 13 | #include <cerrno> |
| 14 | |
| 15 | #ifndef _LIBCPP_VERSION |
| 16 | #error _LIBCPP_VERSION not defined |
| 17 | #endif |
| 18 | |
| 19 | #ifndef E2BIG |
| 20 | #error E2BIG not defined |
| 21 | #endif |
| 22 | |
| 23 | #ifndef EACCES |
| 24 | #error EACCES not defined |
| 25 | #endif |
| 26 | |
| 27 | #ifndef EACCES |
| 28 | #error EACCES not defined |
| 29 | #endif |
| 30 | |
| 31 | #ifndef EADDRINUSE |
| 32 | #error EADDRINUSE not defined |
| 33 | #endif |
| 34 | |
| 35 | #ifndef EADDRNOTAVAIL |
| 36 | #error EADDRNOTAVAIL not defined |
| 37 | #endif |
| 38 | |
| 39 | #ifndef EAFNOSUPPORT |
| 40 | #error EAFNOSUPPORT not defined |
| 41 | #endif |
| 42 | |
| 43 | #ifndef EAGAIN |
| 44 | #error EAGAIN not defined |
| 45 | #endif |
| 46 | |
| 47 | #ifndef EALREADY |
| 48 | #error EALREADY not defined |
| 49 | #endif |
| 50 | |
| 51 | #ifndef EBADF |
| 52 | #error EBADF not defined |
| 53 | #endif |
| 54 | |
| 55 | #ifndef EBADMSG |
| 56 | #error EBADMSG not defined |
| 57 | #endif |
| 58 | |
| 59 | #ifndef EBUSY |
| 60 | #error EBUSY not defined |
| 61 | #endif |
| 62 | |
| 63 | #ifndef ECANCELED |
| 64 | #error ECANCELED not defined |
| 65 | #endif |
| 66 | |
| 67 | #ifndef ECHILD |
| 68 | #error ECHILD not defined |
| 69 | #endif |
| 70 | |
| 71 | #ifndef ECONNABORTED |
| 72 | #error ECONNABORTED not defined |
| 73 | #endif |
| 74 | |
| 75 | #ifndef ECONNREFUSED |
| 76 | #error ECONNREFUSED not defined |
| 77 | #endif |
| 78 | |
| 79 | #ifndef ECONNRESET |
| 80 | #error ECONNRESET not defined |
| 81 | #endif |
| 82 | |
| 83 | #ifndef EDEADLK |
| 84 | #error EDEADLK not defined |
| 85 | #endif |
| 86 | |
| 87 | #ifndef EDESTADDRREQ |
| 88 | #error EDESTADDRREQ not defined |
| 89 | #endif |
| 90 | |
| 91 | #ifndef EDOM |
| 92 | #error EDOM not defined |
| 93 | #endif |
| 94 | |
| 95 | #ifndef EEXIST |
| 96 | #error EEXIST not defined |
| 97 | #endif |
| 98 | |
| 99 | #ifndef EFAULT |
| 100 | #error EFAULT not defined |
| 101 | #endif |
| 102 | |
| 103 | #ifndef EFBIG |
| 104 | #error EFBIG not defined |
| 105 | #endif |
| 106 | |
| 107 | #ifndef EHOSTUNREACH |
| 108 | #error EHOSTUNREACH not defined |
| 109 | #endif |
| 110 | |
| 111 | #ifndef EIDRM |
| 112 | #error EIDRM not defined |
| 113 | #endif |
| 114 | |
| 115 | #ifndef EILSEQ |
| 116 | #error EILSEQ not defined |
| 117 | #endif |
| 118 | |
| 119 | #ifndef EINPROGRESS |
| 120 | #error EINPROGRESS not defined |
| 121 | #endif |
| 122 | |
| 123 | #ifndef EINTR |
| 124 | #error EINTR not defined |
| 125 | #endif |
| 126 | |
| 127 | #ifndef EINVAL |
| 128 | #error EINVAL not defined |
| 129 | #endif |
| 130 | |
| 131 | #ifndef EIO |
| 132 | #error EIO not defined |
| 133 | #endif |
| 134 | |
| 135 | #ifndef EISCONN |
| 136 | #error EISCONN not defined |
| 137 | #endif |
| 138 | |
| 139 | #ifndef EISDIR |
| 140 | #error EISDIR not defined |
| 141 | #endif |
| 142 | |
| 143 | #ifndef ELOOP |
| 144 | #error ELOOP not defined |
| 145 | #endif |
| 146 | |
| 147 | #ifndef EMFILE |
| 148 | #error EMFILE not defined |
| 149 | #endif |
| 150 | |
| 151 | #ifndef EMLINK |
| 152 | #error EMLINK not defined |
| 153 | #endif |
| 154 | |
| 155 | #ifndef EMSGSIZE |
| 156 | #error EMSGSIZE not defined |
| 157 | #endif |
| 158 | |
| 159 | #ifndef ENAMETOOLONG |
| 160 | #error ENAMETOOLONG not defined |
| 161 | #endif |
| 162 | |
| 163 | #ifndef ENETDOWN |
| 164 | #error ENETDOWN not defined |
| 165 | #endif |
| 166 | |
| 167 | #ifndef ENETRESET |
| 168 | #error ENETRESET not defined |
| 169 | #endif |
| 170 | |
| 171 | #ifndef ENETUNREACH |
| 172 | #error ENETUNREACH not defined |
| 173 | #endif |
| 174 | |
| 175 | #ifndef ENFILE |
| 176 | #error ENFILE not defined |
| 177 | #endif |
| 178 | |
| 179 | #ifndef ENOBUFS |
| 180 | #error ENOBUFS not defined |
| 181 | #endif |
| 182 | |
| 183 | #ifndef ENODATA |
| 184 | #error ENODATA not defined |
| 185 | #endif |
| 186 | |
| 187 | #ifndef ENODEV |
| 188 | #error ENODEV not defined |
| 189 | #endif |
| 190 | |
| 191 | #ifndef ENOENT |
| 192 | #error ENOENT not defined |
| 193 | #endif |
| 194 | |
| 195 | #ifndef ENOEXEC |
| 196 | #error ENOEXEC not defined |
| 197 | #endif |
| 198 | |
| 199 | #ifndef ENOLCK |
| 200 | #error ENOLCK not defined |
| 201 | #endif |
| 202 | |
| 203 | #ifndef ENOLINK |
| 204 | #error ENOLINK not defined |
| 205 | #endif |
| 206 | |
| 207 | #ifndef ENOMEM |
| 208 | #error ENOMEM not defined |
| 209 | #endif |
| 210 | |
| 211 | #ifndef ENOMSG |
| 212 | #error ENOMSG not defined |
| 213 | #endif |
| 214 | |
| 215 | #ifndef ENOPROTOOPT |
| 216 | #error ENOPROTOOPT not defined |
| 217 | #endif |
| 218 | |
| 219 | #ifndef ENOSPC |
| 220 | #error ENOSPC not defined |
| 221 | #endif |
| 222 | |
| 223 | #ifndef ENOSR |
| 224 | #error ENOSR not defined |
| 225 | #endif |
| 226 | |
| 227 | #ifndef ENOSTR |
| 228 | #error ENOSTR not defined |
| 229 | #endif |
| 230 | |
| 231 | #ifndef ENOSYS |
| 232 | #error ENOSYS not defined |
| 233 | #endif |
| 234 | |
| 235 | #ifndef ENOTCONN |
| 236 | #error ENOTCONN not defined |
| 237 | #endif |
| 238 | |
| 239 | #ifndef ENOTDIR |
| 240 | #error ENOTDIR not defined |
| 241 | #endif |
| 242 | |
| 243 | #ifndef ENOTEMPTY |
| 244 | #error ENOTEMPTY not defined |
| 245 | #endif |
| 246 | |
| 247 | #ifndef ENOTRECOVERABLE |
| 248 | #error ENOTRECOVERABLE not defined |
| 249 | #endif |
| 250 | |
| 251 | #ifndef ENOTSOCK |
| 252 | #error ENOTSOCK not defined |
| 253 | #endif |
| 254 | |
| 255 | #ifndef ENOTSUP |
| 256 | #error ENOTSUP not defined |
| 257 | #endif |
| 258 | |
| 259 | #ifndef ENOTTY |
| 260 | #error ENOTTY not defined |
| 261 | #endif |
| 262 | |
| 263 | #ifndef ENXIO |
| 264 | #error ENXIO not defined |
| 265 | #endif |
| 266 | |
| 267 | #ifndef EOPNOTSUPP |
| 268 | #error EOPNOTSUPP not defined |
| 269 | #endif |
| 270 | |
| 271 | #ifndef EOVERFLOW |
| 272 | #error EOVERFLOW not defined |
| 273 | #endif |
| 274 | |
| 275 | #ifndef EOWNERDEAD |
| 276 | #error EOWNERDEAD not defined |
| 277 | #endif |
| 278 | |
| 279 | #ifndef EPERM |
| 280 | #error EPERM not defined |
| 281 | #endif |
| 282 | |
| 283 | #ifndef EPIPE |
| 284 | #error EPIPE not defined |
| 285 | #endif |
| 286 | |
| 287 | #ifndef EPROTO |
| 288 | #error EPROTO not defined |
| 289 | #endif |
| 290 | |
| 291 | #ifndef EPROTONOSUPPORT |
| 292 | #error EPROTONOSUPPORT not defined |
| 293 | #endif |
| 294 | |
| 295 | #ifndef EPROTOTYPE |
| 296 | #error EPROTOTYPE not defined |
| 297 | #endif |
| 298 | |
| 299 | #ifndef ERANGE |
| 300 | #error ERANGE not defined |
| 301 | #endif |
| 302 | |
| 303 | #ifndef EROFS |
| 304 | #error EROFS not defined |
| 305 | #endif |
| 306 | |
| 307 | #ifndef ESPIPE |
| 308 | #error ESPIPE not defined |
| 309 | #endif |
| 310 | |
| 311 | #ifndef ESRCH |
| 312 | #error ESRCH not defined |
| 313 | #endif |
| 314 | |
| 315 | #ifndef ETIME |
| 316 | #error ETIME not defined |
| 317 | #endif |
| 318 | |
| 319 | #ifndef ETIMEDOUT |
| 320 | #error ETIMEDOUT not defined |
| 321 | #endif |
| 322 | |
| 323 | #ifndef ETXTBSY |
| 324 | #error ETXTBSY not defined |
| 325 | #endif |
| 326 | |
| 327 | #ifndef EWOULDBLOCK |
| 328 | #error EWOULDBLOCK not defined |
| 329 | #endif |
| 330 | |
| 331 | #ifndef EXDEV |
| 332 | #error EXDEV not defined |
| 333 | #endif |
| 334 | |
| 335 | #ifndef errno |
| 336 | #error errno not defined |
| 337 | #endif |
| 338 | |
| 339 | int main() |
| 340 | { |
| 341 | } |