mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
Modify tests to check that va_copy is only defined in C++11 and beyond.
llvm-svn: 222282
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user