summaryrefslogtreecommitdiffstats
path: root/libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp')
-rw-r--r--libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp b/libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp
index 9b8212150e4..367fa2c4db5 100644
--- a/libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp
+++ b/libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp
@@ -76,6 +76,30 @@
#error stdout not defined
#endif
+// As an optimisation, these may be defined as macros in the C header. We want
+// to check the functions, not the macros.
+#ifdef puts
+#undef puts
+#endif
+#ifdef putc
+#undef putc
+#endif
+#ifdef getc
+#undef getc
+#endif
+#ifdef putchar
+#undef putchar
+#endif
+#ifdef clearerr
+#undef clearerr
+#endif
+#ifdef feof
+#undef feof
+#endif
+#ifdef ferror
+#undef ferror
+#endif
+
#include <cstdarg>
int main()
OpenPOWER on IntegriCloud