summaryrefslogtreecommitdiffstats
path: root/libcxx/test/language.support/support.runtime/cstdarg.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/language.support/support.runtime/cstdarg.pass.cpp')
-rw-r--r--libcxx/test/language.support/support.runtime/cstdarg.pass.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/libcxx/test/language.support/support.runtime/cstdarg.pass.cpp b/libcxx/test/language.support/support.runtime/cstdarg.pass.cpp
index 00baf8029c5..c9d00498e69 100644
--- a/libcxx/test/language.support/support.runtime/cstdarg.pass.cpp
+++ b/libcxx/test/language.support/support.runtime/cstdarg.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