diff options
Diffstat (limited to 'libcxx/test/language.support/support.runtime')
-rw-r--r-- | libcxx/test/language.support/support.runtime/cstdarg.pass.cpp | 10 |
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 |