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

llvm-svn: 222282
This commit is contained in:
Eric Fiselier
2014-11-18 23:46:18 +00:00
parent 9c1e4123f8
commit e15f86cb12
2 changed files with 16 additions and 4 deletions

View File

@@ -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

View File

@@ -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