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:
parent
f2215ae626
commit
1f8e21c6a3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user