Modify tests to check that va_copy is only defined in C++11 and beyond.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@222282 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier 2014-11-18 23:46:18 +00:00
parent f2215ae626
commit 1f8e21c6a3
2 changed files with 16 additions and 4 deletions

View File

@ -15,8 +15,14 @@
#error va_arg not defined #error va_arg not defined
#endif #endif
#ifndef va_copy #if __cplusplus >= 201103L
#error va_copy not defined # 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 #endif
#ifndef va_end #ifndef va_end

View File

@ -15,8 +15,14 @@
#error va_arg not defined #error va_arg not defined
#endif #endif
#ifndef va_copy #if __cplusplus >= 201103L
#error va_copy not defined # 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 #endif
#ifndef va_end #ifndef va_end