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
|
#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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user