summaryrefslogtreecommitdiffstats
path: root/libcxx/test/depr/depr.c.headers/stdarg_h.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/depr/depr.c.headers/stdarg_h.pass.cpp')
-rw-r--r--libcxx/test/depr/depr.c.headers/stdarg_h.pass.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/libcxx/test/depr/depr.c.headers/stdarg_h.pass.cpp b/libcxx/test/depr/depr.c.headers/stdarg_h.pass.cpp
index 2c18c5d2cc3..1bf7352185c 100644
--- a/libcxx/test/depr/depr.c.headers/stdarg_h.pass.cpp
+++ b/libcxx/test/depr/depr.c.headers/stdarg_h.pass.cpp
@@ -15,8 +15,14 @@
#error va_arg not defined
#endif
-#ifndef va_copy
-#error va_copy not defined
+#if __cplusplus >= 201103L
+# ifndef va_copy
+# error va_copy not defined when c++ >= 11
+# endif
+#else
+# ifdef va_copy
+# error va_copy not defined when c++ < 11
+# endif
#endif
#ifndef va_end
OpenPOWER on IntegriCloud