cstdarg.pass.cpp 710 B

123456789101112131415161718192021222324252627282930313233343536
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is dual licensed under the MIT and the University of Illinois Open
  6. // Source Licenses. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // test <cstdarg>
  10. #include <cstdarg>
  11. #ifndef va_arg
  12. #error va_arg not defined
  13. #endif
  14. #if __cplusplus >= 201103L
  15. # ifndef va_copy
  16. # error va_copy is not defined when c++ >= 11
  17. # endif
  18. #endif
  19. #ifndef va_end
  20. #error va_end not defined
  21. #endif
  22. #ifndef va_start
  23. #error va_start not defined
  24. #endif
  25. int main()
  26. {
  27. std::va_list va;
  28. ((void)va);
  29. }