aboutsummaryrefslogtreecommitdiff
path: root/test/std/depr/depr.c.headers/errno_h.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/depr/depr.c.headers/errno_h.pass.cpp')
-rw-r--r--test/std/depr/depr.c.headers/errno_h.pass.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/std/depr/depr.c.headers/errno_h.pass.cpp b/test/std/depr/depr.c.headers/errno_h.pass.cpp
new file mode 100644
index 000000000000..4d955a5b4763
--- /dev/null
+++ b/test/std/depr/depr.c.headers/errno_h.pass.cpp
@@ -0,0 +1,33 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// test <errno.h>
+
+#include <errno.h>
+
+#ifndef EDOM
+#error EDOM not defined
+#endif
+
+#ifndef EILSEQ
+#error EILSEQ not defined
+#endif
+
+#ifndef ERANGE
+#error ERANGE not defined
+#endif
+
+#ifndef errno
+#error errno not defined
+#endif
+
+int main()
+{
+}