diff --git a/test/depr/depr.c.headers/stdarg_h.pass.cpp b/test/depr/depr.c.headers/stdarg_h.pass.cpp index 2c18c5d2..1bf73521 100644 --- a/test/depr/depr.c.headers/stdarg_h.pass.cpp +++ b/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 diff --git a/test/language.support/support.runtime/cstdarg.pass.cpp b/test/language.support/support.runtime/cstdarg.pass.cpp index 00baf802..c9d00498 100644 --- a/test/language.support/support.runtime/cstdarg.pass.cpp +++ b/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